mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-24 02:51:26 +00:00
Fix unit tests with logger.warn stub
This commit is contained in:
parent
bddd1fda7d
commit
deced1aa15
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ SandboxedModule = require('sandboxed-module')
|
|||
describe "DiffManager", ->
|
||||
beforeEach ->
|
||||
@DiffManager = SandboxedModule.require modulePath, requires:
|
||||
"logger-sharelatex": @logger = { log: sinon.stub(), error: sinon.stub() }
|
||||
"logger-sharelatex": @logger = { log: sinon.stub(), error: sinon.stub(), warn: sinon.stub() }
|
||||
"./UpdatesManager": @UpdatesManager = {}
|
||||
"./DocumentUpdaterManager": @DocumentUpdaterManager = {}
|
||||
"./DiffGenerator": @DiffGenerator = {}
|
||||
|
|
Loading…
Reference in a new issue