From 3cf4119878a96fd28f009d4061fc19f30643ff29 Mon Sep 17 00:00:00 2001 From: Greg Thompson Date: Tue, 14 Jan 2020 14:41:50 -0600 Subject: [PATCH] mock jest fn --- .../apm/public/selectors/__tests__/chartSelectors.test.ts | 2 +- .../siem/public/components/embeddables/map_config.test.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/legacy/plugins/apm/public/selectors/__tests__/chartSelectors.test.ts b/x-pack/legacy/plugins/apm/public/selectors/__tests__/chartSelectors.test.ts index b2838c22df10..252c49cc09fb 100644 --- a/x-pack/legacy/plugins/apm/public/selectors/__tests__/chartSelectors.test.ts +++ b/x-pack/legacy/plugins/apm/public/selectors/__tests__/chartSelectors.test.ts @@ -77,7 +77,7 @@ describe('chartSelectors', () => { type: 'linemark' }, { - color: '##da8b45', + color: '#da8b45', data: [ { x: 0, y: 300 }, { x: 1000, y: 400 } diff --git a/x-pack/legacy/plugins/siem/public/components/embeddables/map_config.test.ts b/x-pack/legacy/plugins/siem/public/components/embeddables/map_config.test.ts index bc4e6130f56f..4004db5f2179 100644 --- a/x-pack/legacy/plugins/siem/public/components/embeddables/map_config.test.ts +++ b/x-pack/legacy/plugins/siem/public/components/embeddables/map_config.test.ts @@ -16,6 +16,7 @@ import { jest.mock('uuid', () => { return { + v1: jest.fn(() => 'uuid.v1()'), v4: jest.fn(() => 'uuid.v4()'), }; });