Skip to content

Commit

Permalink
test(sdk): remove need for hard-codes documentID
Browse files Browse the repository at this point in the history
  • Loading branch information
aloisklink committed Mar 6, 2024
1 parent 7d37bef commit b062b59
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/sdk/src/index.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,20 @@ describe('deleteDocument', () => {
});

describe("getDocument", () => {
it("should get publicly shared diagram", async() => {
it("should get diagram", async() => {
const newDocument = await client.createDocument(testProjectId);

documentsToDelete.add(newDocument.documentID);

const latestDocument = await client.getDocument({
// owned by [email protected]
documentID: '8bce727b-69b7-4f6e-a434-d578e2b363ff',
documentID: newDocument.documentID,
// major and minor are optional
});

expect(latestDocument).toStrictEqual(documentMatcher);

const earliestDocument = await client.getDocument({
// owned by [email protected]
documentID: '8bce727b-69b7-4f6e-a434-d578e2b363ff',
documentID: newDocument.documentID,
major: 0,
minor: 1,
});
Expand Down

0 comments on commit b062b59

Please sign in to comment.