pl-fe: Fix tests

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-10-23 19:10:49 +02:00
parent 4340311c94
commit dc7939dea5

View file

@ -4,7 +4,6 @@ import { IntlProvider } from 'react-intl';
import { Provider } from 'react-redux';
import { MemoryRouter } from 'react-router-dom';
import { MODAL_CLOSE, MODAL_OPEN } from 'pl-fe/actions/modals';
import { mockStore, rootState } from 'pl-fe/jest/test-helpers';
import ComposeButton from './compose-button';
@ -34,7 +33,7 @@ describe('<ComposeButton />', () => {
expect(store.getActions().length).toEqual(0);
fireEvent.click(screen.getByRole('button'));
expect(store.getActions()[0].type).toEqual(MODAL_CLOSE);
expect(store.getActions()[1].type).toEqual(MODAL_OPEN);
expect(store.getActions()[0].type).toEqual('MODAL_CLOSE');
expect(store.getActions()[1].type).toEqual('MODAL_OPEN');
});
});