Add test for location of redirect to v1

This commit is contained in:
Alasdair Smith 2018-09-12 11:08:28 +01:00
parent 9d600afdf8
commit 893e2dd235
2 changed files with 4 additions and 1 deletions

View file

@ -421,4 +421,7 @@ describe 'TokenAccess', ->
unimportedV1Token = '123abc'
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'
)
, done)

View file

@ -107,4 +107,4 @@ module.exports =
'/proxy/missing/baseUrl': path: '/foo/bar'
overleaf:
host: "http://#{process.env['V1_HOST']}:5000"
host: "http://overleaf.test:5000"