Fix unit test namespacing from mocha upgrade

This commit is contained in:
James Allen 2018-02-15 16:28:58 +00:00
parent 5d1659457e
commit 657da70d45
2 changed files with 2 additions and 1 deletions

View file

@ -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 ->

View file

@ -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]}