Sfoglia il codice sorgente

[misc] DeletingADocumentTests: fix behavior checks

The preloading setup does an initial getDocument request to web-api.
Jakob Ackermann 5 anni fa
parent
commit
29cea1743b

+ 1 - 0
services/document-updater/test/acceptance/js/DeletingADocumentTests.js

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