Guest User

Untitled

a guest
Mar 9th, 2018
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. test('password confirmation different from password', () => {
  2. const actual = getSignupFormFieldErrors({
  3. username: 'foo',
  4. email: 'foo@example.com',
  5. password: 'pass',
  6. passwordConfirmation: 'differentPass',
  7. });
  8. const expected = {
  9. passwordConfirmation: PASSWORDS_MISSMATCH,
  10. };
  11. expect(actual).toEqual(expected);
  12. });
Add Comment
Please, Sign In to add comment