Skip to content

Commit

Permalink
fix: invalid password value in change password modal test
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrvvu committed Nov 21, 2024
1 parent 1ccb663 commit 137adec
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ describe('ChangePasswordModal', () => {
)

fireEvent.change(currentPasswordInput, {
target: { value: '12345qwert' }
target: { value: '12345qwert!' }
})
fireEvent.change(passwordInput, {
target: { value: '12345qwertY' }
target: { value: '12345qwertY!' }
})
fireEvent.change(confirmPasswordInput, {
target: { value: '12345qwertY' }
target: { value: '12345qwertY!' }
})

await waitFor(() => {
Expand All @@ -81,8 +81,8 @@ describe('ChangePasswordModal', () => {
expect(AuthService.changePassword).toHaveBeenCalledWith(
userDataMock._id,
{
password: '12345qwertY',
currentPassword: '12345qwert'
password: '12345qwertY!',
currentPassword: '12345qwert!'
}
)
})
Expand All @@ -109,13 +109,13 @@ describe('ChangePasswordModal', () => {
)

fireEvent.change(currentPasswordInput, {
target: { value: '12345qwertY' }
target: { value: '12345qwertY!' }
})
fireEvent.change(passwordInput, {
target: { value: '12345qwertY' }
target: { value: '12345qwertY!' }
})
fireEvent.change(confirmPasswordInput, {
target: { value: '12345qwertY' }
target: { value: '12345qwertY!' }
})

await waitFor(() => {
Expand Down

0 comments on commit 137adec

Please sign in to comment.