From bebb076c63423050a40b3732941af85eee856c29 Mon Sep 17 00:00:00 2001 From: Joakim Bjerknes Date: Thu, 2 Nov 2023 12:48:48 +0100 Subject: [PATCH] fix end_date prop warning in tests --- .../components/date-picker/__tests__/DatePicker.test.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/dnb-eufemia/src/components/date-picker/__tests__/DatePicker.test.tsx b/packages/dnb-eufemia/src/components/date-picker/__tests__/DatePicker.test.tsx index a7bbe6b367f..b6efeaaa63f 100644 --- a/packages/dnb-eufemia/src/components/date-picker/__tests__/DatePicker.test.tsx +++ b/packages/dnb-eufemia/src/components/date-picker/__tests__/DatePicker.test.tsx @@ -127,7 +127,12 @@ describe('DatePicker component', () => { ).not.toContain('dnb-date-picker--closed') rerender( - + ) expect(on_change).toHaveBeenCalledTimes(2) @@ -524,6 +529,7 @@ describe('DatePicker component', () => { show_cancel_button={false} show_submit_button={false} range={false} + end_date={null} /> ) @@ -686,6 +692,7 @@ describe('DatePicker component', () => { on_change={on_change} on_type={on_type} range={false} + end_date={null} /> )