-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: added test cases for NotificationsBanner
- Loading branch information
1 parent
0ba3cac
commit 31ed941
Showing
2 changed files
with
31 additions
and
0 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
29 changes: 29 additions & 0 deletions
29
src/containers/NotificationsBanner/__snapshots__/NotificationsBanner.test.jsx.snap
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`NotificationsBanner component snapshots 1`] = ` | ||
<PageBanner | ||
variant="accentB" | ||
> | ||
<span> | ||
<FormattedMessage | ||
defaultMessage="You can now enable notifications for ORA assignments that require staff grading, from the " | ||
description="user info message that user can enable notifications for ORA assignments" | ||
id="ora-grading.NotificationsBanner.Message" | ||
/> | ||
<Hyperlink | ||
destination="http://localhost:1997/notifications" | ||
isInline={true} | ||
rel="noopener noreferrer" | ||
showLaunchIcon={false} | ||
target="_blank" | ||
variant="muted" | ||
> | ||
<FormattedMessage | ||
defaultMessage="preferences center." | ||
description="placeholder for the preferences center link" | ||
id="ora-grading.NotificationsBanner.linkMessage" | ||
/> | ||
</Hyperlink> | ||
</span> | ||
</PageBanner> | ||
`; |