Skip to content

Commit 47206d6

Browse files
authored
fix: notification component mocks (#1174)
1 parent 0752d08 commit 47206d6

File tree

2 files changed

+57
-59
lines changed

2 files changed

+57
-59
lines changed

src/routes/Notifications.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import { Errors } from '../utils/constants';
66
import { NotificationsRoute } from './Notifications';
77

88
jest.mock('../components/AccountNotifications', () => ({
9-
AccountNotifications: 'AccountNotifications',
9+
AccountNotifications: () => <p>AccountNotifications</p>,
1010
}));
1111

1212
jest.mock('../components/AllRead', () => ({
13-
AllRead: 'AllRead',
13+
AllRead: () => <p>AllRead</p>,
1414
}));
1515

1616
jest.mock('../components/Oops', () => ({
17-
Oops: 'Oops',
17+
Oops: () => <p>Oops</p>,
1818
}));
1919

2020
describe('routes/Notifications.tsx', () => {

src/routes/__snapshots__/Notifications.test.tsx.snap

Lines changed: 54 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)