Skip to content

Commit

Permalink
fix(portal): add test data for activity diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
KsiBart committed Nov 15, 2024
1 parent c3aac65 commit c3f3317
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@ test("ActivityDiagrams test", () => {
refetch: vi.fn()
} as any);


vi.spyOn(homepageHooks, "useGetActivityRequests").mockReturnValue({
data: {
requestStatistics: [
{
date: "2024-05-30T13:02:03.224486Z",
success: 1,
error: 2,
},
],
},
isLoading: false,
refetch: vi.fn(),
isRefetching: false
} as any);

const { container, getByTestId } = render(
<QueryClientProvider client={queryClient}>
<BrowserRouter>
Expand Down

0 comments on commit c3f3317

Please sign in to comment.