diff --git a/src/components/Footer.test.jsx b/src/components/Footer.test.jsx index ac20190ac..139a0aae1 100644 --- a/src/components/Footer.test.jsx +++ b/src/components/Footer.test.jsx @@ -1,20 +1,11 @@ /* eslint-disable react/prop-types */ import React, { useMemo } from 'react'; import renderer from 'react-test-renderer'; -import { fireEvent, render, waitFor } from '@testing-library/react'; -import { initializeMockApp } from '@edx/frontend-platform/testing'; import { IntlProvider } from '@edx/frontend-platform/i18n'; -import { getCookies } from '@edx/frontend-platform/i18n/lib'; import { AppContext } from '@edx/frontend-platform/react'; -import '@testing-library/jest-dom'; +import { initializeMockApp } from '@edx/frontend-platform/testing'; import Footer from './Footer'; -import { patchPreferences, postSetLang } from './LanguageSelector/data'; - -jest.mock('./LanguageSelector/data', () => ({ - patchPreferences: jest.fn(), - postSetLang: jest.fn(), -})); const FooterWithContext = ({ locale = 'es' }) => { const contextValue = useMemo(() => ({ @@ -61,11 +52,6 @@ const FooterWithLanguageSelector = ({ authenticatedUser = null }) => { }; describe('