mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 14:19:01 +02:00
Add test for redirecting to v1 if project unimported
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user