-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(sdk): remove need for hard-codes documentID
- Loading branch information
1 parent
7d37bef
commit b062b59
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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, | ||
}); | ||
|