fix test failure from merge

This commit is contained in:
Ersun Warncke 2018-09-25 08:54:01 -04:00
parent 7b90fcb186
commit a23f0a3d15

View file

@ -407,7 +407,7 @@ describe "TokenAccessController", ->
@res.redirect = sinon.stub()
@next = sinon.stub()
@TokenAccessHandler.findProjectWithReadOnlyToken = sinon.stub()
.callsArgWith(1, null, @project)
.callsArgWith(1, null, @project, true)
@TokenAccessHandler.checkV1Access = sinon.stub().callsArgWith(1, null, false, 'doc-url')
@TokenAccessController.readOnlyToken @req, @res, @next