mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-16 20:31:08 +00:00
disable logger in tests
This commit is contained in:
parent
800666fcb5
commit
da7250c6f2
2 changed files with 8 additions and 1 deletions
|
@ -6,7 +6,10 @@ assert = require("chai").assert
|
|||
|
||||
describe "ASpell", ->
|
||||
beforeEach ->
|
||||
@ASpell = SandboxedModule.require "../../../app/js/ASpell", requires:{}
|
||||
@ASpell = SandboxedModule.require "../../../app/js/ASpell", requires:
|
||||
"logger-sharelatex":
|
||||
log:->
|
||||
err:->
|
||||
|
||||
describe "a correctly spelled word", ->
|
||||
beforeEach (done) ->
|
||||
|
|
|
@ -19,6 +19,10 @@ describe "LearnedWordsManager", ->
|
|||
@LearnedWordsManager = SandboxedModule.require modulePath, requires:
|
||||
"./DB" : @db
|
||||
"./MongoCache":@cache
|
||||
"logger-sharelatex":
|
||||
log:->
|
||||
err:->
|
||||
info:->
|
||||
|
||||
describe "learnWord", ->
|
||||
beforeEach ->
|
||||
|
|
Loading…
Reference in a new issue