kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Update notification.test.tsx
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>environments/review-develop-3zknud/deployments/548^2
rodzic
37d97eb857
commit
d527425f67
|
@ -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,
|
||||
};
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue