-
-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: productivity email action text (#8966)
- Loading branch information
Showing
7 changed files
with
104 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,14 +135,14 @@ test('Can send productivity report email', async () => { | |
); | ||
expect(content.from).toBe('[email protected]'); | ||
expect(content.subject).toBe('Unleash - productivity report'); | ||
expect(content.html.includes(`Productivity Report`)).toBe(true); | ||
expect(content.html.includes(`localhost/insights`)).toBe(true); | ||
expect(content.html.includes(`localhost/profile`)).toBe(true); | ||
expect(content.html.includes('Productivity Report')).toBe(true); | ||
expect(content.html.includes('localhost/insights')).toBe(true); | ||
expect(content.html.includes('localhost/profile')).toBe(true); | ||
expect(content.html.includes('#68a611')).toBe(true); | ||
expect(content.html.includes(`10% more than previous month`)).toBe(true); | ||
expect(content.text.includes(`localhost/insights`)).toBe(true); | ||
expect(content.text.includes(`localhost/profile`)).toBe(true); | ||
expect(content.text.includes(`localhost/profile`)).toBe(true); | ||
expect(content.html.includes('10% more than previous month')).toBe(true); | ||
expect(content.text.includes('localhost/insights')).toBe(true); | ||
expect(content.text.includes('localhost/profile')).toBe(true); | ||
expect(content.text.includes('localhost/profile')).toBe(true); | ||
}); | ||
|
||
test('Should add optional headers to productivity email', 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
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