From d527425f671219d340248deeacc63e5e7d418ceb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Tue, 12 Jul 2022 00:25:07 +0200 Subject: [PATCH] Update notification.test.tsx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- .../components/__tests__/notification.test.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/soapbox/features/notifications/components/__tests__/notification.test.tsx b/app/soapbox/features/notifications/components/__tests__/notification.test.tsx index eacca0f99d..9c86474b7b 100644 --- a/app/soapbox/features/notifications/components/__tests__/notification.test.tsx +++ b/app/soapbox/features/notifications/components/__tests__/notification.test.tsx @@ -1,11 +1,9 @@ import * as React from 'react'; -import { updateNotifications } from '../../../../actions/notifications'; -import { render, screen, rootState, createTestStore } from '../../../../jest/test-helpers'; -import { makeGetNotification } from '../../../../selectors'; -import Notification from '../notification'; +import { updateNotifications } from 'soapbox/actions/notifications'; +import { render, screen, rootState, createTestStore } from 'soapbox/jest/test-helpers'; -const getNotification = makeGetNotification(); +import Notification from '../notification'; /** Prepare the notification for use by the component */ const normalize = (notification: any) => { @@ -15,7 +13,7 @@ const normalize = (notification: any) => { return { // @ts-ignore - notification: getNotification(state, state.notifications.items.get(notification.id)), + notification: state.notifications.items.get(notification.id), state, }; };