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 +

, "container":
- +

+ AllRead +

, "debug": [Function], "findAllByAltText": [Function], @@ -70,15 +74,15 @@ exports[`routes/Notifications.tsx should render itself & its children (error con "asFragment": [Function], "baseElement":
- +

+ Oops +

, "container":
- +

+ Oops +

, "debug": [Function], "findAllByAltText": [Function], @@ -139,15 +143,15 @@ exports[`routes/Notifications.tsx should render itself & its children (error con "asFragment": [Function], "baseElement":
- +

+ Oops +

, "container":
- +

+ Oops +

, "debug": [Function], "findAllByAltText": [Function], @@ -208,15 +212,15 @@ exports[`routes/Notifications.tsx should render itself & its children (error con "asFragment": [Function], "baseElement":
- +

+ Oops +

, "container":
- +

+ Oops +

, "debug": [Function], "findAllByAltText": [Function], @@ -277,15 +281,15 @@ exports[`routes/Notifications.tsx should render itself & its children (error con "asFragment": [Function], "baseElement":
- +

+ Oops +

, "container":
- +

+ Oops +

, "debug": [Function], "findAllByAltText": [Function], @@ -346,15 +350,15 @@ exports[`routes/Notifications.tsx should render itself & its children (error con "asFragment": [Function], "baseElement":
- +

+ Oops +

, "container":
- +

+ Oops +

, "debug": [Function], "findAllByAltText": [Function], @@ -418,10 +422,9 @@ exports[`routes/Notifications.tsx should render itself & its children (show acco
- +

+ AccountNotifications +

, @@ -429,10 +432,9 @@ exports[`routes/Notifications.tsx should render itself & its children (show acco
- +

+ AccountNotifications +

, "debug": [Function], @@ -497,14 +499,12 @@ exports[`routes/Notifications.tsx should render itself & its children (with noti
- - +

+ AccountNotifications +

+

+ AccountNotifications +

, @@ -512,14 +512,12 @@ exports[`routes/Notifications.tsx should render itself & its children (with noti
- - +

+ AccountNotifications +

+

+ AccountNotifications +

, "debug": [Function],