mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Fix unit tests with logger.warn stub
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user