-
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.
* feat: fix platform notifications date parsing * chore: release v2.0.1-rc.0 * chore: update gitignore and spec description
- Loading branch information
Showing
6 changed files
with
65 additions
and
24 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 |
---|---|---|
|
@@ -35,3 +35,5 @@ package-lock.json | |
.npmrc | ||
results | ||
|
||
.env | ||
|
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
31 changes: 31 additions & 0 deletions
31
src/components/PlatformNotifications/PlatformNotifications.spec.js
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,31 @@ | ||
import React from 'react'; | ||
import PlatformNotifications from './PlatformNotifications'; | ||
import { screen, render } from '@testing-library/react'; | ||
|
||
const notificationsObj = { | ||
creator: 'Boomerang CICD', | ||
date: '2022-03-15T12:47:47.655+00:00', | ||
detail: 'Outage description test for the following service(s): Boomerang Flow,Boomerang CICD', | ||
eventId: '620b9f7e99fcb715cbc222b3', | ||
id: '620ba0f354f1b83f5077dec6', | ||
priority: 'highest', | ||
read: false, | ||
severity: 'INFO', | ||
target: 'user', | ||
title: 'Resolved', | ||
type: 'notification', | ||
userId: '61730018ae92414d2bd15b4c', | ||
}; | ||
|
||
describe('Platform notification', () => { | ||
test('Renders correctly', async () => { | ||
render( | ||
<PlatformNotifications notificationInfo={notificationsObj} readNotification={() => {}} /> | ||
); | ||
expect( | ||
screen.getByText( | ||
'Outage description test for the following service(s): Boomerang Flow,Boomerang CICD' | ||
) | ||
).toBeInTheDocument(); | ||
}); | ||
}); |
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