From 8d88dcb8827a470e903e51e89cc364e089de4b32 Mon Sep 17 00:00:00 2001 From: Ryland Herrick Date: Tue, 8 Sep 2020 21:03:06 -0500 Subject: [PATCH] Fix failing tests I changed the default value for the form field mock from an array to a string; this fixes the few tests that were relying on it being an array. --- .../detections/components/rules/add_item_form/index.test.tsx | 2 +- .../public/detections/components/rules/mitre/index.test.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/security_solution/public/detections/components/rules/add_item_form/index.test.tsx b/x-pack/plugins/security_solution/public/detections/components/rules/add_item_form/index.test.tsx index 890e66c8767c4..362dfed4b8e72 100644 --- a/x-pack/plugins/security_solution/public/detections/components/rules/add_item_form/index.test.tsx +++ b/x-pack/plugins/security_solution/public/detections/components/rules/add_item_form/index.test.tsx @@ -13,7 +13,7 @@ import { useFormFieldMock } from '../../../../common/mock/test_providers'; describe('AddItem', () => { it('renders correctly', () => { const Component = () => { - const field = useFormFieldMock(); + const field = useFormFieldMock({ value: [] }); return ( { it('renders correctly', () => { const Component = () => { - const field = useFormFieldMock(); + const field = useFormFieldMock({ value: [] }); return (