Fix failing tests
This commit is contained in:
@@ -1481,9 +1481,11 @@ describe('Password', function () {
|
|||||||
it('succeeds', function (done) {
|
it('succeeds', function (done) {
|
||||||
var scope = nock(config.adminOrigin())
|
var scope = nock(config.adminOrigin())
|
||||||
.filteringPath(function (path) {
|
.filteringPath(function (path) {
|
||||||
|
path = path.replace(/accessToken=[^&]*/, 'accessToken=token');
|
||||||
|
path = path.replace(/expiresAt=[^&]*/, 'expiresAt=1234');
|
||||||
return path;
|
return path;
|
||||||
})
|
})
|
||||||
.get('/').reply(200, {});
|
.get('/?accessToken=token&expiresAt=1234').reply(200, {});
|
||||||
|
|
||||||
superagent.post(SERVER_URL + '/api/v1/session/password/reset')
|
superagent.post(SERVER_URL + '/api/v1/session/password/reset')
|
||||||
.send({ password: '12345678', email: USER_0.email, resetToken: USER_0.resetToken })
|
.send({ password: '12345678', email: USER_0.email, resetToken: USER_0.resetToken })
|
||||||
|
|||||||
Reference in New Issue
Block a user