hasDate function

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

Matches the date from a HasDate.

Implementation

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