From a141a3f5c5a6fd6beb9a6c04a176fb6cb2d0860a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Kopycin=CC=81ski?= Date: Fri, 15 Nov 2019 16:29:22 +0100 Subject: [PATCH] Update jest --- .../plugins/siem/public/components/flyout/pane/index.test.tsx | 4 ++++ .../siem/public/components/timeline/properties/index.test.tsx | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/x-pack/legacy/plugins/siem/public/components/flyout/pane/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/flyout/pane/index.test.tsx index 6681e5a90b1a4..4b7b935b1f536 100644 --- a/x-pack/legacy/plugins/siem/public/components/flyout/pane/index.test.tsx +++ b/x-pack/legacy/plugins/siem/public/components/flyout/pane/index.test.tsx @@ -25,6 +25,10 @@ mockUseKibanaCore.mockImplementation(() => ({ uiSettings: mockUiSettings, })); +jest.mock('ui/vis/lib/timezone', () => ({ + timezoneProvider: () => () => 'America/New_York', +})); + describe('Pane', () => { test('renders correctly against snapshot', () => { const EmptyComponent = shallow( diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/properties/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/timeline/properties/index.test.tsx index 8c586cf958417..eb82241b04124 100644 --- a/x-pack/legacy/plugins/siem/public/components/timeline/properties/index.test.tsx +++ b/x-pack/legacy/plugins/siem/public/components/timeline/properties/index.test.tsx @@ -21,6 +21,10 @@ mockUseKibanaCore.mockImplementation(() => ({ uiSettings: mockUiSettings, })); +jest.mock('ui/vis/lib/timezone', () => ({ + timezoneProvider: () => () => 'America/New_York', +})); + describe('Properties', () => { const usersViewing = ['elastic'];