mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-11 18:50:56 +00:00
Add test for redirecting to v1 if project unimported
This commit is contained in:
parent
24495f3340
commit
cf8ae7c28c
2 changed files with 10 additions and 0 deletions
|
@ -415,3 +415,10 @@ describe 'TokenAccess', ->
|
|||
try_content_access(@other2, @project_id, (response, body) =>
|
||||
expect(body.privilegeLevel).to.equal false
|
||||
, done)
|
||||
|
||||
describe 'unimported v1 project', ->
|
||||
it 'should redirect to v1', (done) ->
|
||||
unimportedV1Token = '123abc'
|
||||
try_read_and_write_token_access(@owner, unimportedV1Token, (response, body) =>
|
||||
expect(response.statusCode).to.equal 302
|
||||
, done)
|
||||
|
|
|
@ -105,3 +105,6 @@ module.exports =
|
|||
path: (params) -> "/universities/list/#{params.id}"
|
||||
'/institutions/domains': { baseUrl: v1Api.url, path: '/university/domains' }
|
||||
'/proxy/missing/baseUrl': path: '/foo/bar'
|
||||
|
||||
overleaf:
|
||||
host: "http://#{process.env['V1_HOST']}:5000"
|
||||
|
|
Loading…
Reference in a new issue