소스 검색

[misc] DeletingADocumentTests: fix behavior checks

The preloading setup does an initial getDocument request to web-api.
Jakob Ackermann 5 년 전
부모
커밋
29cea1743b
1개의 변경된 파일과 1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      services/document-updater/test/acceptance/js/DeletingADocumentTests.js

+ 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,