fixed UserExistsError message to say email instead of username
This commit is contained in:
@@ -458,7 +458,7 @@ describe('collections-graphql', () => {
|
||||
expect(error.response.errors[1].message).toEqual('The following field is invalid: email');
|
||||
expect(error.response.errors[1].path[0]).toEqual('test3');
|
||||
expect(error.response.errors[1].extensions.name).toEqual('ValidationError');
|
||||
expect(error.response.errors[1].extensions.data[0].message).toEqual('A user with the given username is already registered');
|
||||
expect(error.response.errors[1].extensions.data[0].message).toEqual('A user with the given email is already registered');
|
||||
expect(error.response.errors[1].extensions.data[0].field).toEqual('email');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user