1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -155,17 +155,20 @@ describe('deleteDocument', () => {
155
155
} ) ;
156
156
157
157
describe ( "getDocument" , ( ) => {
158
- it ( "should get publicly shared diagram" , async ( ) => {
158
+ it ( "should get diagram" , async ( ) => {
159
+ const newDocument = await client . createDocument ( testProjectId ) ;
160
+
161
+ documentsToDelete . add ( newDocument . documentID ) ;
162
+
159
163
const latestDocument = await client . getDocument ( {
160
- // owned by alois @mermaidchart .com
161
- documentID : '8bce727b-69b7-4f6e-a434-d578e2b363ff' ,
164
+ documentID : newDocument . documentID ,
165
+ // major and minor are optional
162
166
} ) ;
163
167
164
168
expect ( latestDocument ) . toStrictEqual ( documentMatcher ) ;
165
169
166
170
const earliestDocument = await client . getDocument ( {
167
- // owned by alois@mermaidchart .com
168
- documentID : '8bce727b-69b7-4f6e-a434-d578e2b363ff' ,
171
+ documentID : newDocument . documentID ,
169
172
major : 0 ,
170
173
minor : 1 ,
171
174
} ) ;
0 commit comments