Skip to content

Commit

Permalink
feat: Add i18n support for ProfileDropdown component
Browse files Browse the repository at this point in the history
  • Loading branch information
pranshugupta54 committed Jun 2, 2024
1 parent e0892c9 commit 7b4b120
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/ProfileDropdown/ProfileDropdown.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import 'jest-localstorage-mock';
import { MockedProvider } from '@apollo/react-testing';
import { REVOKE_REFRESH_TOKEN } from 'GraphQl/Mutations/mutations';
import useLocalStorage from 'utils/useLocalstorage';
import { I18nextProvider } from 'react-i18next';
import i18nForTest from 'utils/i18nForTest';

const { setItem } = useLocalStorage();
const MOCKS = [
Expand Down Expand Up @@ -57,7 +59,9 @@ describe('ProfileDropdown Component', () => {
render(
<MockedProvider mocks={MOCKS} addTypename={false}>
<BrowserRouter>
<ProfileDropdown />
<I18nextProvider i18n={i18nForTest}>
<ProfileDropdown />
</I18nextProvider>
</BrowserRouter>
</MockedProvider>,
);
Expand Down

0 comments on commit 7b4b120

Please sign in to comment.