From 9f8a7a7b167a921f834e533be144f2d521628618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Kopycin=CC=81ski?= Date: Tue, 7 Jan 2020 10:06:24 +0100 Subject: [PATCH] WIP --- .../body/renderers/formatted_field.test.tsx | 48 +++++++++++-------- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/formatted_field.test.tsx b/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/formatted_field.test.tsx index d8984a224c128..1ff364b3fc749 100644 --- a/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/formatted_field.test.tsx +++ b/x-pack/legacy/plugins/siem/public/components/timeline/body/renderers/formatted_field.test.tsx @@ -23,26 +23,30 @@ describe('Events', () => { test('renders correctly against snapshot', () => { const wrapper = shallow( - + + + ); expect(toJson(wrapper)).toMatchSnapshot(); }); test('it renders a localized date tooltip for a field type of date that has a valid timestamp', () => { const wrapper = mount( - + + + ); expect(wrapper.find('[data-test-subj="localized-date-tool-tip"]').exists()).toEqual(true); @@ -230,13 +234,15 @@ describe('Events', () => { test('it renders a hyperlink to the hosts details page when fieldName is host.name, and a hostname is provided', () => { const wrapper = mount( - + + + ); expect(wrapper.find('[data-test-subj="host-details-link"]').exists()).toEqual(true); });