Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
emrgnt-cmplxty committed Jan 8, 2025
2 parents f2d2621 + e9fc549 commit 2a884b8
Show file tree
Hide file tree
Showing 37 changed files with 2,148 additions and 1,062 deletions.
20 changes: 16 additions & 4 deletions js/sdk/__tests__/RetrievalIntegrationSuperUser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,23 @@ describe("r2rClient V3 Documents Integration Tests", () => {
// expect(content.length).toBeGreaterThan(0);
// }, 30000);

test("Delete untitled document", async () => {
const response = await client.documents.delete({
id: "28ce9a4c-4d15-5287-b0c6-67834b9c4546",
});
test("List and delete conversations", async () => {
const listResponse = await client.conversations.list();
expect(listResponse.results).toBeDefined();

for (const conversation of listResponse.results) {
const deleteResponse = await client.conversations.delete({
id: conversation.id,
});
expect(deleteResponse.results).toBeDefined();
}

const finalListResponse = await client.conversations.list();
expect(finalListResponse.results.length).toBe(0);
});

test("Delete document", async () => {
const response = await client.documents.delete({ id: documentId });
expect(response.results).toBeDefined();
});
});
8 changes: 8 additions & 0 deletions js/sdk/__tests__/UsersIntegrationSuperUser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ describe("r2rClient V3 Users Integration Tests", () => {
await client.users.logout();
});

test("Request verification email", async () => {
await expect(
client.users.sendVerificationEmail({
email: "new_user@example.com",
}),
).rejects.toThrow(/Status 400/);
});

test("Login as a user after logout", async () => {
const response = await client.users.login({
email: "new_user@example.com",
Expand Down
2 changes: 1 addition & 1 deletion js/sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "r2r-js",
"version": "0.4.9",
"version": "0.4.10",
"description": "",
"main": "dist/index.js",
"browser": "dist/index.browser.js",
Expand Down
Loading

0 comments on commit 2a884b8

Please sign in to comment.