mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 06:09:02 +02:00
refine beta opt-in workflow.
This commit is contained in:
@@ -44,9 +44,10 @@ describe "BetaProgramController", ->
|
||||
beforeEach ->
|
||||
@BetaProgramHandler.optIn.callsArgWith(1, null)
|
||||
|
||||
it "should redirect to '/'", () ->
|
||||
it "should redirect to '/beta/opt-in'", () ->
|
||||
@BetaProgramController.optIn @req, @res, @next
|
||||
@res.redirect.callCount.should.equal 1
|
||||
@res.redirect.firstCall.args[0].should.equal "/beta/opt-in"
|
||||
|
||||
it "should not call next with an error", () ->
|
||||
@BetaProgramController.optIn @req, @res, @next
|
||||
|
||||
Reference in New Issue
Block a user