Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
twschiller committed Jun 21, 2024
1 parent 369b197 commit ebc8e80
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jest.mock("@/modDefinitions/modDefinitionHooks", () => ({
useAllModDefinitions: jest.fn().mockReturnValue({ refetch: jest.fn() }),
}));

// TODO: mock the API call instead of RTK Query
jest.mock("@/data/service/api", () => {
const originalModule = jest.requireActual("@/data/service/api");
return {
Expand Down Expand Up @@ -73,7 +74,7 @@ describe("it renders", () => {
);
dispatch(
modModalsSlice.actions.setShareContext({
standaloneModDefinition: standaloneModDefinition.id,
extensionId: standaloneModDefinition.id,
}),
);
},
Expand Down

0 comments on commit ebc8e80

Please sign in to comment.