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