Skip to content

Commit

Permalink
test(web): fix L10nSection test
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Jul 10, 2024
1 parent 6a527bf commit baa9959
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions web/src/components/overview/L10nSection.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@ const locales = [
];

jest.mock("~/queries/l10n", () => ({
localesQuery: () => ({
queryKey: ["l10n", "locales"],
queryFn: jest.fn().mockResolvedValue(locales)
}),
configQuery: () => ({
queryKey: ["l10n", "config"],
queryFn: jest.fn().mockResolvedValue({ locales: ["en_US.UTF-8"] })
})
useL10n: () => ({ locales, selectedLocale: locales[0] }),
}));

it("displays the selected locale", async () => {
Expand Down

0 comments on commit baa9959

Please sign in to comment.