Redirect to v1 via sign in link
This commit is contained in:
@@ -422,6 +422,6 @@ describe 'TokenAccess', ->
|
||||
try_read_and_write_token_access(@owner, unimportedV1Token, (response, body) =>
|
||||
expect(response.statusCode).to.equal 302
|
||||
expect(response.headers.location).to.equal(
|
||||
'http://overleaf.test:5000/123abc'
|
||||
'/sign_in_to_v1?return_to=http://overleaf.test:5000/123abc'
|
||||
)
|
||||
, done)
|
||||
|
||||
@@ -254,7 +254,7 @@ describe "TokenAccessController", ->
|
||||
expect(@res.redirect.callCount).to.equal 1
|
||||
expect(@res.redirect.calledWith(
|
||||
302,
|
||||
'http://overleaf.test:5000/123abc'
|
||||
'/sign_in_to_v1?return_to=http://overleaf.test:5000/123abc'
|
||||
)).to.equal true
|
||||
done()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user