Skip to content

Commit

Permalink
fix end_date prop warning in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joakbjerk committed Nov 2, 2023
1 parent a40254a commit 4db16c5
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@ describe('DatePicker component', () => {
).not.toContain('dnb-date-picker--closed')

rerender(
<DatePicker {...defaultProps} on_change={on_change} range={false} />
<DatePicker
{...defaultProps}
on_change={on_change}
range={false}
end_date={null}
/>
)

expect(on_change).toHaveBeenCalledTimes(2)
Expand Down Expand Up @@ -524,6 +529,7 @@ describe('DatePicker component', () => {
show_cancel_button={false}
show_submit_button={false}
range={false}
end_date={null}
/>
)

Expand Down Expand Up @@ -686,6 +692,7 @@ describe('DatePicker component', () => {
on_change={on_change}
on_type={on_type}
range={false}
end_date={null}
/>
)

Expand Down

0 comments on commit 4db16c5

Please sign in to comment.