[misc] DeletingADocumentTests: fix behavior checks

The preloading setup does an initial getDocument request to web-api.
This commit is contained in:
Jakob Ackermann 2021-07-13 13:12:34 +01:00
parent bf8224e2a0
commit 29cea1743b

View file

@ -103,6 +103,7 @@ describe('Deleting a document', function () {
}) })
it('should need to reload the doc if read again', function (done) { it('should need to reload the doc if read again', function (done) {
MockWebApi.getDocument.resetHistory()
MockWebApi.getDocument.called.should.equals(false) MockWebApi.getDocument.called.should.equals(false)
return DocUpdaterClient.getDoc( return DocUpdaterClient.getDoc(
this.project_id, this.project_id,