Add a dateRangeOption where the dateFrom is after the dateTo:
Select that option:
Actual result: The event.detail is an empty object, which (since our spec says it contains the dates) is equivalent to event.detail.dateFrom === undefined and event.detail.dateTo === undefined.
Expected result:
Throw an error as soon as we encounter such an option?
Add a
dateRangeOption
where thedateFrom
is after thedateTo
:Select that option:
Actual result: The
event.detail
is an empty object, which (since our spec says it contains the dates) is equivalent toevent.detail.dateFrom === undefined
andevent.detail.dateTo === undefined
.Expected result: Throw an error as soon as we encounter such an option?