diff --git a/src/routes/test/oauth2-test.js b/src/routes/test/oauth2-test.js index b3a8c5e7e..90ebe2c8e 100644 --- a/src/routes/test/oauth2-test.js +++ b/src/routes/test/oauth2-test.js @@ -1481,9 +1481,11 @@ describe('Password', function () { it('succeeds', function (done) { var scope = nock(config.adminOrigin()) .filteringPath(function (path) { + path = path.replace(/accessToken=[^&]*/, 'accessToken=token'); + path = path.replace(/expiresAt=[^&]*/, 'expiresAt=1234'); return path; }) - .get('/').reply(200, {}); + .get('/?accessToken=token&expiresAt=1234').reply(200, {}); superagent.post(SERVER_URL + '/api/v1/session/password/reset') .send({ password: '12345678', email: USER_0.email, resetToken: USER_0.resetToken })