testing library
Useful matchers for testing dates and times.
Functions
-
hasDate(
Object? year, [Object? month, Object? day]) → Matcher - Matches the date from a HasDate.
-
hasDay(
Object? matcher) → Matcher - Matches the day from a HasDate.
-
hasHour(
Object? matcher) → Matcher - Matches the hour from a HasTime.
-
hasInstant(
Object? matcher) → Matcher - Matches the instant from a HasInstant.
-
hasMinute(
Object? matcher) → Matcher - Matches the minute from a HasTime.
-
hasMonth(
Object? matcher) → Matcher - Matches the month from a HasDate.
-
hasNanosecond(
Object? matcher) → Matcher - Matches the nanosecond from a HasTime.
-
hasSecond(
Object? matcher) → Matcher - Matches the second from a HasTime.
-
hasTime(
Object? hour, [Object? minute, Object? second, Object? nanosecond]) → Matcher - Matches the time from a HasTime.
-
hasWeekday(
Object? matcher) → Matcher - Matches the weekday from a HasDate.
-
hasYear(
Object? matcher) → Matcher - Matches the year from a HasDate.