Merge pull request #972 from sharelatex/ew-fix-test

fix test failure from merge
This commit is contained in:
Ersun Warncke 2018-09-25 09:09:25 -04:00 committed by GitHub
commit ecf5df0b6d

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