hasDate function

Matcher hasDate(
  1. Object? year, [
  2. Object? month,
  3. Object? day
])

Matches the date from a HasDate.

Implementation

Matcher hasDate(Object? year, [Object? month, Object? day]) => allOf(
    hasYear(year),
    month != null ? hasMonth(month) : null,
    day != null ? hasDay(day) : null);