Przeglądaj źródła

disable logger in tests

Brian Gough 11 lat temu
rodzic
commit
da7250c6f2

+ 4 - 1
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) ->

+ 4 - 0
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 ->