mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-02 05:51:15 +00:00
fix incorrect or missing test mocks
This commit is contained in:
parent
4c2a90966a
commit
7b4b75b51a
2 changed files with 3 additions and 1 deletions
|
@ -30,6 +30,8 @@ describe "AuthenticationController", ->
|
|||
revokeAllUserSessions: sinon.stub().callsArgWith(1, null)
|
||||
"../../infrastructure/Modules": @Modules = {hooks: {fire: sinon.stub().callsArgWith(2, null, [])}}
|
||||
"../SudoMode/SudoModeHandler": @SudoModeHandler = {activateSudoMode: sinon.stub().callsArgWith(1, null)}
|
||||
"../Notifications/NotificationsBuilder": @NotificationsBuilder =
|
||||
ipMatcherAffiliation: sinon.stub()
|
||||
@user =
|
||||
_id: ObjectId()
|
||||
email: @email = "USER@example.com"
|
||||
|
|
|
@ -59,7 +59,7 @@ describe 'TemplatesController', ->
|
|||
"uuid":v4:=>@uuid
|
||||
"request": @request
|
||||
"fs":@fs
|
||||
"../../../../app/js/models/Project": {Project: @Project}
|
||||
"../../../js/models/Project": {Project: @Project}
|
||||
@zipUrl = "%2Ftemplates%2F52fb86a81ae1e566597a25f6%2Fv%2F4%2Fzip&templateName=Moderncv%20Banking&compiler=pdflatex"
|
||||
@templateName = "project name here"
|
||||
@user_id = "1234"
|
||||
|
|
Loading…
Reference in a new issue