fix unit tests

This commit is contained in:
Henry Oswald
2018-08-23 00:12:05 +01:00
parent 05ddbd3a18
commit 5074442702
2 changed files with 14 additions and 12 deletions

View File

@@ -9,9 +9,10 @@ describe "DockerLockManager", ->
beforeEach ->
@LockManager = SandboxedModule.require modulePath, requires:
"settings-sharelatex": {}
"logger-sharelatex": @logger = { log: sinon.stub(), error: sinon.stub() }
"logger-sharelatex": @logger = { log: sinon.stub(), error: sinon.stub(), err:-> }
"fs":
lstat:sinon.stub().callsArgWith(1)
readdir: sinon.stub().callsArgWith(1)
"lockfile": @Lockfile = {}
@lockFile = "/local/compile/directory/.project-lock"