Skip to content

Commit

Permalink
fix up testing
Browse files Browse the repository at this point in the history
  • Loading branch information
beckpaul committed Dec 3, 2023
1 parent 97635ff commit ae2da05
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/integration/accountRouter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@ describe('Account Routes', function () {
test('responds with OK to provided parameters', async () => {
const response = await testSession.get('/account/password/confirmReset?username=turbo2&token=XXXXX')
expect(response.statusCode).toBe(200)
expect(response.headers.location).toBe('/account/requestPasswordReset')
})

test('redirect to reset request page if missing parameters', async () => {
test('redirect to reset request page if missing parameters with flash parameter', async () => {
const response = await testSession.get('/account/password/confirmReset')
expect(response.statusCode).toBe(200)
expect(response.headers.location).toBe('/account/requestPasswordReset')
expect(response.statusCode).toBe(302)
expect(response.headers.location).toContain('/account/requestPasswordReset?flash=')
})

test('redirect old pw-reset routes', async () => {
Expand Down

0 comments on commit ae2da05

Please sign in to comment.