Update notification.test.tsx
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
37d97eb857
commit
d527425f67
1 changed files with 4 additions and 6 deletions
|
@ -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,
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue