diff --git a/lib/DonorsList/DonorsContainer.test.js b/lib/DonorsList/DonorsContainer.test.js index 9ada4541..9832c0a9 100644 --- a/lib/DonorsList/DonorsContainer.test.js +++ b/lib/DonorsList/DonorsContainer.test.js @@ -1,5 +1,5 @@ -import { render, screen } from '@testing-library/react'; import { MemoryRouter } from 'react-router-dom'; +import { render, screen } from '@testing-library/react'; import stripesFinalForm from '@folio/stripes/final-form'; @@ -16,7 +16,7 @@ jest.mock('./DonorsList', () => jest.fn(({ donorsMap }) => { return 'stripes-components.tableEmpty'; } - return Object.values(donorsMap).map(donor =>
{donor.name}
); + return Object.values(donorsMap).map(({ name }) =>
{name}
); })); jest.mock('./hooks', () => ({ diff --git a/lib/DonorsList/DonorsList.test.js b/lib/DonorsList/DonorsList.test.js index 9a2d28d8..c64b15ba 100644 --- a/lib/DonorsList/DonorsList.test.js +++ b/lib/DonorsList/DonorsList.test.js @@ -1,5 +1,5 @@ -import { render, screen } from '@testing-library/react'; import { MemoryRouter } from 'react-router-dom'; +import { render, screen } from '@testing-library/react'; import DonorsList from './DonorsList'; diff --git a/lib/DonorsList/hooks/useFetchDonors/useFetchDonors.test.js b/lib/DonorsList/hooks/useFetchDonors/useFetchDonors.test.js index c3494842..7eef974f 100644 --- a/lib/DonorsList/hooks/useFetchDonors/useFetchDonors.test.js +++ b/lib/DonorsList/hooks/useFetchDonors/useFetchDonors.test.js @@ -1,5 +1,8 @@ +import { + QueryClient, + QueryClientProvider, +} from 'react-query'; import { renderHook } from '@testing-library/react-hooks'; -import { QueryClient, QueryClientProvider } from 'react-query'; import { useOkapiKy } from '@folio/stripes/core';