mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
fixed tests
This commit is contained in:
parent
9891bc37d8
commit
1452eb4572
2 changed files with 10 additions and 4 deletions
|
@ -7,11 +7,15 @@ SandboxedModule = require('sandboxed-module')
|
|||
|
||||
describe "LockManager", ->
|
||||
beforeEach ->
|
||||
@Settings =
|
||||
redis:
|
||||
web:{}
|
||||
@LockManager = SandboxedModule.require modulePath, requires:
|
||||
"redis":
|
||||
"redis-sharelatex":
|
||||
createClient: () => @rclient =
|
||||
auth: sinon.stub()
|
||||
"settings-sharelatex": @Settings = {}
|
||||
"settings-sharelatex": @Settings
|
||||
|
||||
@key = "lock-key"
|
||||
@callback = sinon.stub()
|
||||
|
||||
|
|
|
@ -8,11 +8,13 @@ SandboxedModule = require('sandboxed-module')
|
|||
describe "RedisManager", ->
|
||||
beforeEach ->
|
||||
@RedisManager = SandboxedModule.require modulePath, requires:
|
||||
"redis" :
|
||||
"redis-sharelatex" :
|
||||
createClient: () => @rclient =
|
||||
auth: sinon.stub()
|
||||
multi: () => @rclient
|
||||
"settings-sharelatex": {}
|
||||
"settings-sharelatex":
|
||||
redis:
|
||||
web:{}
|
||||
@doc_id = "doc-id-123"
|
||||
@project_id = "project-id-123"
|
||||
@batchSize = 100
|
||||
|
|
Loading…
Reference in a new issue