diff --git a/src/routes/Notifications.test.tsx b/src/routes/Notifications.test.tsx index 9f477bebd..6fb0edc39 100644 --- a/src/routes/Notifications.test.tsx +++ b/src/routes/Notifications.test.tsx @@ -6,15 +6,15 @@ import { Errors } from '../utils/constants'; import { NotificationsRoute } from './Notifications'; jest.mock('../components/AccountNotifications', () => ({ - AccountNotifications: 'AccountNotifications', + AccountNotifications: () =>
AccountNotifications
, })); jest.mock('../components/AllRead', () => ({ - AllRead: 'AllRead', + AllRead: () =>AllRead
, })); jest.mock('../components/Oops', () => ({ - Oops: 'Oops', + Oops: () =>Oops
, })); describe('routes/Notifications.tsx', () => { diff --git a/src/routes/__snapshots__/Notifications.test.tsx.snap b/src/routes/__snapshots__/Notifications.test.tsx.snap index 1d947c756..08e37f8d4 100644 --- a/src/routes/__snapshots__/Notifications.test.tsx.snap +++ b/src/routes/__snapshots__/Notifications.test.tsx.snap @@ -5,11 +5,15 @@ exports[`routes/Notifications.tsx should render itself & its children (all read "asFragment": [Function], "baseElement":+ AllRead +
+ AllRead +
+ Oops +
+ Oops +
+ Oops +
+ Oops +
+ Oops +
+ Oops +
+ Oops +
+ Oops +
+ Oops +
+ Oops +
+ AccountNotifications +