diff --git a/services/document-updater/test/unit/coffee/LockManager/ReleasingTheLock.coffee b/services/document-updater/test/unit/coffee/LockManager/ReleasingTheLock.coffee index 06dd2aa6bf..28fb02059e 100644 --- a/services/document-updater/test/unit/coffee/LockManager/ReleasingTheLock.coffee +++ b/services/document-updater/test/unit/coffee/LockManager/ReleasingTheLock.coffee @@ -31,6 +31,7 @@ describe 'LockManager - releasing the lock', ()-> end: sinon.stub() @LockManager = SandboxedModule.require(modulePath, requires: mocks) @lockValue = "lock-value-stub" + @callback = sinon.stub() describe "when the lock is current", -> beforeEach -> diff --git a/services/document-updater/test/unit/coffee/ProjectManager/getProjectDocsTests.coffee b/services/document-updater/test/unit/coffee/ProjectManager/getProjectDocsTests.coffee index 8e3bc2206d..217e23edc7 100644 --- a/services/document-updater/test/unit/coffee/ProjectManager/getProjectDocsTests.coffee +++ b/services/document-updater/test/unit/coffee/ProjectManager/getProjectDocsTests.coffee @@ -16,11 +16,11 @@ describe "ProjectManager - getProjectDocsAndFlushIfOld", -> done: sinon.stub() @project_id = "project-id-123" @callback = sinon.stub() + @doc_versions = [111, 222, 333] describe "successfully", -> beforeEach (done) -> @doc_ids = ["doc-id-1", "doc-id-2", "doc-id-3"] - @doc_versions = [111, 222, 333] @doc_lines = [["aaa","aaa"],["bbb","bbb"],["ccc","ccc"]] @docs = [ {_id: @doc_ids[0], lines: @doc_lines[0], v: @doc_versions[0]}