-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update tests to match new error specs
- Loading branch information
Showing
2 changed files
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ describe('Sign-in E2E Tests', () => { | |
.send({ email: '[email protected]', password: '12345567' }); | ||
|
||
expect(response.status).toBe(401); | ||
expect(response.body.message).toEqual('Invalid credentials'); | ||
expect(response.body.errors[0].title).toEqual('Invalid credentials'); | ||
}); | ||
|
||
it('should return 401 when user tries to sign in with an incorrect password', async () => { | ||
|
@@ -39,7 +39,7 @@ describe('Sign-in E2E Tests', () => { | |
.send({ email: user.email, password: 'wrongpassword' }); | ||
|
||
expect(response.status).toBe(401); | ||
expect(response.body.message).toEqual('Invalid credentials'); | ||
expect(response.body.errors[0].title).toEqual('Invalid credentials'); | ||
}); | ||
|
||
it('should return 200 and an access token when user successfully signs in', async () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters