Skip to content

Commit

Permalink
Remove tests for removed returnTo query param
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcanhelp committed Mar 2, 2020
1 parent 7a10e9f commit 8551436
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions test/logout.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ describe('logout route', function() {
const logoutResponse = await request.get({uri: '/logout', baseUrl, jar, followRedirect: false});
assert.equal(logoutResponse.headers.location, 'https://example.org/after-logout-in-auth-config');
});

it('should redirect to returnTo in logout query', async function() {
const logoutResponse = await request.get({uri: '/logout', qs: {returnTo: '/after-logout-in-logout-query'}, baseUrl, jar, followRedirect: false});
assert.equal(logoutResponse.headers.location, 'https://example.org/after-logout-in-logout-query');
});
});

describe('should allow absolute paths', () => {
Expand Down Expand Up @@ -155,11 +150,6 @@ describe('logout route', function() {
const logoutResponse = await request.get({uri: '/logout', baseUrl, jar, followRedirect: false});
assert.equal(logoutResponse.headers.location, 'https://external-domain.com/after-logout-in-auth-config');
});

it('should redirect to returnTo in logout query', async function() {
const logoutResponse = await request.get({uri: '/logout', qs: {returnTo: 'https://external-domain.com/after-logout-in-logout-query'}, baseUrl, jar, followRedirect: false});
assert.equal(logoutResponse.headers.location, 'https://external-domain.com/after-logout-in-logout-query');
});
});
});
});

0 comments on commit 8551436

Please sign in to comment.