Guest User

Untitled

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