Skip to content

Commit

Permalink
Small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Mario committed Apr 28, 2024
1 parent 323060e commit 7036926
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/src/components/ForgetPassword/RestorePassword.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ describe('RestorePassword Component', () => {
const passwordInput = container.querySelector(`input[name="password"]`);
fireEvent.change(passwordInput, { target: { value: 'newPassword' } });

const rPasswordInput = container.querySelector(`input[name="repeat_password"]`);
fireEvent.change(rPasswordInput, { target: { value: 'newPassword' } });
// Ensure handlePasswordChange was called with the correct argument
expect(mockHandlePasswordChange).toHaveBeenCalledWith(expect.any(Object)); // Expecting event object
});
Expand Down

0 comments on commit 7036926

Please sign in to comment.