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 1ed4c79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import { waitFor, renderHook } from '@testing-library/react-hooks';
import { waitFor, renderHook } from '@testing-library/react';
import { useKibana } from '../../common/lib/kibana';
import {
mockedAlertSummaryResponse,
Expand Down

0 comments on commit 1ed4c79

Please sign in to comment.