mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-06 09:01:43 +00:00
Fix unit test namespacing from mocha upgrade
This commit is contained in:
parent
5d1659457e
commit
657da70d45
2 changed files with 2 additions and 1 deletions
|
@ -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 ->
|
||||
|
|
|
@ -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]}
|
||||
|
|
Loading…
Reference in a new issue