Skip to content
Snippets Groups Projects
Commit 647da394 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix(TU): wrong test description

parent cead291d
No related branches found
No related tags found
3 merge requests!27Recette,!26Dev,!6Feat/change password
......@@ -111,7 +111,7 @@ describe('UsersService', () => {
jest.spyOn(service, 'changeUserPassword').mockImplementation(async (): Promise<HttpException> => result);
expect(await service.changeUserPassword('add3d', 'azertyU1!d', 'a')).toBe(result);
});
it('should not change password', async () => {
it('should change password', async () => {
const result = new HttpException('Invalid token', HttpStatus.CREATED);
jest.spyOn(service, 'changeUserPassword').mockImplementation(async (): Promise<HttpException> => result);
expect(await service.changeUserPassword('add3d', 'azertyU1!d', 'azertyU1!d')).toBe(result);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment