Skip to content

Commit

Permalink
chore: resolve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Matheusafonsouza committed Jan 10, 2025
1 parent d0fe4cb commit b3f8a41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/users/users.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ describe('UsersService', () => {
password: 'newHashedPassword',
});

jest.spyOn(service, 'findOne').mockResolvedValueOnce(user);

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { oldPassword, newPassword, ...updatedData } = updateData;

Expand Down

0 comments on commit b3f8a41

Please sign in to comment.