You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each test case is provided a document. The functions for fetching documents in the API don't seem to include those test documents making it a little hard to test.
For example:
test("should get document",(context,doc)=>{constselected=sketch.getSelectedDocument();constfound=sketch.Document.getDocuments().find(d=>doc.id===d.id);expect(found).toBeTruthy();expect(doc.id).toEqual(selected.id);});
Would it make sense for the test runner to mock these out or at least set the test document as the selected doc before running the test case?
The text was updated successfully, but these errors were encountered:
hum the thing is that the document provided is just an MSDocumentData, not all the APIs are available but it's a lot faster because it's in memory and no UI changes happen.
Each test case is provided a document. The functions for fetching documents in the API don't seem to include those test documents making it a little hard to test.
For example:
Would it make sense for the test runner to mock these out or at least set the test document as the selected doc before running the test case?
The text was updated successfully, but these errors were encountered: