Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Nov 26, 2024
1 parent c0d43f8 commit cefbb02
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ describe('useSearchAlertsQuery', () => {
});

it('calls searchAlerts with correct arguments', async () => {
const { result, waitForValueToChange } = renderHook(() => useSearchAlertsQuery(params), {
const { result } = renderHook(() => useSearchAlertsQuery(params), {
wrapper,
});

await waitForValueToChange(() => result.current.data);
await waitFor(() => expect(result.current.data).toBeDefined());

expect(mockDataPlugin.search.search).toHaveBeenCalledWith(
{
Expand Down

0 comments on commit cefbb02

Please sign in to comment.