Skip to content

Commit

Permalink
fix: Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Harambe-Nakamoto committed May 20, 2022
1 parent 5e28bc3 commit 44b5d54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/__tests__/widgets/menu.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import noop from "lodash/noop";
import { BrowserRouter } from "react-router-dom";
import { renderWithTheme } from "../../testHelpers";
import { Navbar, menuConfig, LangType } from "../../widgets/Navbar";
import { Language } from "../../components/LangSelector/types";

/**
* @see https://jestjs.io/docs/en/manual-mocks
Expand All @@ -21,7 +22,7 @@ Object.defineProperty(window, "matchMedia", {
})),
});

const langs: LangType[] = [...Array(20)].map((_, i) => ({ code: `en${i}`, language: `English${i}` }));
const langs: Language[] = [...Array(20)].map((_, i) => ({ code: `en${i}`, language: `English${i}`, locale: `e${i}` }));

it("renders correctly", () => {
const { asFragment } = renderWithTheme(
Expand Down

0 comments on commit 44b5d54

Please sign in to comment.