Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test('password confirmation different from password', () => {
- const actual = getSignupFormFieldErrors({
- username: 'foo',
- email: 'foo@example.com',
- password: 'pass',
- passwordConfirmation: 'differentPass',
- });
- const expected = {
- passwordConfirmation: PASSWORDS_MISSMATCH,
- };
- expect(actual).toEqual(expected);
- });
Add Comment
Please, Sign In to add comment