Asserts (soft) that a value is a valid date between two others, inclusive.
the value to check
earliest allowed date
latest allowed date
see DateCheckOptions
// published within the last 7 daysexpectDateBetween(post.publishedAt, dayjs().subtract(7, "day"), dayjs()); Copy
// published within the last 7 daysexpectDateBetween(post.publishedAt, dayjs().subtract(7, "day"), dayjs());
Asserts (soft) that a value is a valid date between two others, inclusive.