Skip to content

Commit 4e8624f

Browse files
committed
fixed jest tests
1 parent 0a91506 commit 4e8624f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

x-pack/plugins/triggers_actions_ui/public/application/sections/alert_details/components/alert_details.test.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ jest.mock('../../../app_context', () => ({
4747
})),
4848
}));
4949

50+
jest.mock('react-router-dom', () => ({
51+
useHistory: () => ({
52+
push: jest.fn(),
53+
}),
54+
useLocation: () => ({
55+
pathname: '/triggersActions/alerts/',
56+
}),
57+
}));
58+
5059
jest.mock('../../../lib/capabilities', () => ({
5160
hasSaveAlertsCapability: jest.fn(() => true),
5261
}));

0 commit comments

Comments
 (0)