From dc7939dea5a3b6da5ef01859e59b297d760821a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Wed, 23 Oct 2024 19:10:49 +0200 Subject: [PATCH] pl-fe: Fix tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- .../pl-fe/src/features/ui/components/compose-button.test.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/pl-fe/src/features/ui/components/compose-button.test.tsx b/packages/pl-fe/src/features/ui/components/compose-button.test.tsx index 0302bef64..13cc3de54 100644 --- a/packages/pl-fe/src/features/ui/components/compose-button.test.tsx +++ b/packages/pl-fe/src/features/ui/components/compose-button.test.tsx @@ -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('', () => { 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'); }); });