diff --git a/react/src/components/AssetsPanel/AssetsPanel.test.tsx b/react/src/components/AssetsPanel/AssetsPanel.test.tsx index c246354f..f39c6990 100644 --- a/react/src/components/AssetsPanel/AssetsPanel.test.tsx +++ b/react/src/components/AssetsPanel/AssetsPanel.test.tsx @@ -1,5 +1,5 @@ -import React from 'react'; -import { render, screen, fireEvent, act } from '@testing-library/react'; +import React, { act } from 'react'; +import { render, screen, fireEvent } from '@testing-library/react'; import AssetsPanel from './AssetsPanel'; import { featureCollection } from '@hazmapper/__fixtures__/featuresFixture'; import { useFeatures } from '@hazmapper/hooks'; diff --git a/react/src/components/DeleteMapModal/DeleteMapModal.test.tsx b/react/src/components/DeleteMapModal/DeleteMapModal.test.tsx index 7e68d5e9..d9fdf73b 100644 --- a/react/src/components/DeleteMapModal/DeleteMapModal.test.tsx +++ b/react/src/components/DeleteMapModal/DeleteMapModal.test.tsx @@ -1,7 +1,6 @@ -import React from 'react'; +import React, { act } from 'react'; import { render, screen } from '@testing-library/react'; import { BrowserRouter as Router } from 'react-router-dom'; -import { act } from 'react-dom/test-utils'; import { QueryClient, QueryClientProvider } from 'react-query'; import DeleteMapModal from './DeleteMapModal'; import { Provider } from 'react-redux';