-
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.
fix(profile-update): return new token upon profile update
- return new token upon profile update - implement change full name endpoint [Fixes #!7]
- Loading branch information
Showing
5 changed files
with
57 additions
and
13 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 |
---|---|---|
|
@@ -114,7 +114,7 @@ describe('User Controller tests', () => { | |
|
||
expect(res.status).toBe(200); | ||
expect(res.body.message).toBe('Email successfully updated'); | ||
expect(res.body.data.email).toBe('[email protected]'); | ||
expect(res.body.data.token).toBeDefined(); | ||
}); | ||
|
||
it('should return 400 if email validation fails', async () => { | ||
|
@@ -214,6 +214,6 @@ describe('User Controller tests', () => { | |
.delete('/api/users/profileImg') | ||
.set('Authorization', `Bearer ${token}`) | ||
|
||
expect(res.status).toBe(204); | ||
expect(res.status).toBe(200); | ||
}) | ||
}); |
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
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
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
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