Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Jan 24, 2024
1 parent 88f35cd commit 62b95dd
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import { noop } from 'lodash';
import { EuiDataGridCellValueElementProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
import { waitFor } from '@testing-library/react';
import { AlertsTableQueryContext } from '@kbn/triggers-actions-ui-plugin/public/application/sections/alerts_table/contexts/alerts_table_context';
import { Router } from '@kbn/shared-ux-router';
import { createMemoryHistory } from 'history';

const refresh = jest.fn();
const caseHooksReturnedValue = {
Expand Down Expand Up @@ -114,9 +116,11 @@ describe('ObservabilityActions component', () => {
};

const wrapper = mountWithIntl(
<QueryClientProvider client={queryClient} context={AlertsTableQueryContext}>
<AlertActions {...props} />
</QueryClientProvider>
<Router history={createMemoryHistory()}>
<QueryClientProvider client={queryClient} context={AlertsTableQueryContext}>
<AlertActions {...props} />
</QueryClientProvider>
</Router>
);
await act(async () => {
await nextTick();
Expand Down

0 comments on commit 62b95dd

Please sign in to comment.