瀏覽代碼

Add some missing unit test mocks

James Allen 8 年之前
父節點
當前提交
c2777918fa
共有 1 個文件被更改,包括 2 次插入 和 0 次删除
  1. 2 0
      services/web/test/unit/coffee/User/UserUpdaterTests.coffee

+ 2 - 0
services/web/test/unit/coffee/User/UserUpdaterTests.coffee

@@ -29,6 +29,8 @@ describe "UserUpdater", ->
 				removeAffiliation: @removeAffiliation
 				removeAffiliation: @removeAffiliation
 			"../../infrastructure/mongojs":@mongojs
 			"../../infrastructure/mongojs":@mongojs
 			"metrics-sharelatex": timeAsyncMethod: sinon.stub()
 			"metrics-sharelatex": timeAsyncMethod: sinon.stub()
+			"settings-sharelatex": @settings = {}
+			"request": @request = {}
 
 
 		@stubbedUser = 
 		@stubbedUser = 
 			_id: "3131231"
 			_id: "3131231"