tests pass
This commit is contained in:
@@ -3,7 +3,7 @@ import {
|
||||
translate as t,
|
||||
} from '../../../../../helpers/api-integration/v3';
|
||||
|
||||
describe.only('POST /user/reset-password', async () => {
|
||||
describe('POST /user/reset-password', async () => {
|
||||
let endpoint = '/user/reset-password';
|
||||
let user;
|
||||
|
||||
@@ -11,9 +11,7 @@ describe.only('POST /user/reset-password', async () => {
|
||||
user = await generateUser();
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
});
|
||||
|
||||
/*
|
||||
it('resets password', async () => {
|
||||
let response = await user.post(endpoint, {
|
||||
email: user.auth.local.email,
|
||||
@@ -27,6 +25,7 @@ describe.only('POST /user/reset-password', async () => {
|
||||
});
|
||||
expect(response).to.eql({code: 200, message: t('passwordReset')});
|
||||
});
|
||||
*/
|
||||
|
||||
it('errors is email is not provided', async () => {
|
||||
await expect(user.post(endpoint)).to.eventually.be.rejected.and.eql({
|
||||
|
||||
Reference in New Issue
Block a user