From e24d0dd5a3266077c499e6ff46a05e8fc024b993 Mon Sep 17 00:00:00 2001 From: Tim Roes Date: Mon, 18 Oct 2021 09:16:38 +0200 Subject: [PATCH] Change mock to revert test --- .../components/discover_grid/get_render_cell_value.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/discover/public/application/components/discover_grid/get_render_cell_value.test.tsx b/src/plugins/discover/public/application/components/discover_grid/get_render_cell_value.test.tsx index 63e9906633f64..f3fa06952fbfa 100644 --- a/src/plugins/discover/public/application/components/discover_grid/get_render_cell_value.test.tsx +++ b/src/plugins/discover/public/application/components/discover_grid/get_render_cell_value.test.tsx @@ -26,7 +26,7 @@ jest.mock('../../../kibana_services', () => ({ get: jest.fn(), }, fieldFormats: { - getDefaultInstance: jest.fn(() => ({ convert: (value: unknown) => value })), + getDefaultInstance: jest.fn(() => ({ convert: (value: unknown) => (value ? value : '-') })), }, }), })); @@ -603,6 +603,6 @@ describe('Discover grid cell rendering', function () { setCellProps={jest.fn()} /> ); - expect(component.html()).toMatchInlineSnapshot(`""`); + expect(component.html()).toMatchInlineSnapshot(`"-"`); }); });