From da7250c6f2b3f1bc9fb60ab03dfcee92a970c018 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Wed, 20 May 2015 11:44:54 +0100 Subject: [PATCH] disable logger in tests --- services/spelling/test/unit/coffee/ASpellTests.coffee | 5 ++++- .../test/unit/coffee/LearnedWordsManagerTests.coffee | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/services/spelling/test/unit/coffee/ASpellTests.coffee b/services/spelling/test/unit/coffee/ASpellTests.coffee index 1170f6baa1..a569282982 100644 --- a/services/spelling/test/unit/coffee/ASpellTests.coffee +++ b/services/spelling/test/unit/coffee/ASpellTests.coffee @@ -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) -> diff --git a/services/spelling/test/unit/coffee/LearnedWordsManagerTests.coffee b/services/spelling/test/unit/coffee/LearnedWordsManagerTests.coffee index 984beb37b8..6cbe6af9c9 100644 --- a/services/spelling/test/unit/coffee/LearnedWordsManagerTests.coffee +++ b/services/spelling/test/unit/coffee/LearnedWordsManagerTests.coffee @@ -19,6 +19,10 @@ describe "LearnedWordsManager", -> @LearnedWordsManager = SandboxedModule.require modulePath, requires: "./DB" : @db "./MongoCache":@cache + "logger-sharelatex": + log:-> + err:-> + info:-> describe "learnWord", -> beforeEach ->