Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
added another test case for invalid format of disabled day
Browse files Browse the repository at this point in the history
  • Loading branch information
qubis741 committed Nov 16, 2022
1 parent ea7852c commit 3078d6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/datepicker/__tests__/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
// { disabledDays: new Date(2022, 10, 15), output: false },
// { disabledDays: [new Date(2022, 10, 16), new Date(2022, 10, 14)], output: true },
// { disabledDays: [new Date(2022, 10, 16), new Date(2022, 10, 15)], output: false },
// { disabledDays: [{incorrect: 'value'}], output: true },
// { disabledDays: [new Date(2022, 10, 16), {incorrect: 'value'}], output: true },
// { disabledDays: { from: new Date(2022, 10, 15), to: null }, output: true },
// { disabledDays: { from: null, to: new Date(2022, 10, 15) }, output: true },
// { disabledDays: { from: new Date(2022, 10, 16), to: new Date(2022, 10, 20) }, output: true },
Expand Down

0 comments on commit 3078d6e

Please sign in to comment.