From 442d4e5c6fbce87156ce7921442e597ee8934c04 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 21 Aug 2018 18:57:11 -0700 Subject: [PATCH] Fix failing tests --- src/routes/test/oauth2-test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 })