-
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.
Cleanup and password reset in account view
- Loading branch information
Showing
10 changed files
with
98 additions
and
54 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,6 @@ handler.get( | |
res.status(200).json({ | ||
id, | ||
email, | ||
avatar: { | ||
med: account.gravatar(72), | ||
}, | ||
}); | ||
}, | ||
); | ||
|
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,21 +32,4 @@ describe('Account Model', () => { | |
// Assert | ||
expect(matched).toBeFalsy(); | ||
}); | ||
|
||
it('should generate gravatar without email and size', () => { | ||
const account = new Account(); | ||
expect(account.gravatar().toString()).toContain('gravatar.com'); | ||
}); | ||
|
||
it('should generate gravatar with size', () => { | ||
const account = new Account(); | ||
const size = 300; | ||
expect(account.gravatar(size).toString()).toContain(`s=${size}`); | ||
}); | ||
|
||
it('should generate gravatar with email', () => { | ||
const account = new Account({ email: '[email protected]' }); | ||
const md5 = '2e0d5407ce8609047b8255c50405d7b1'; | ||
expect(account.gravatar().toString()).toContain(md5); | ||
}); | ||
}); |
b3359ae
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: