assertDateAfter
Assert that a Date holds a later instant than the expected one, with type-narrowing.
Comparing two instants through assertGreaterThan means reading epoch milliseconds out of the failure.
This reports both Dates in ISO form.
import { assertDateAfter } from "@kensio/smartass";
const dueAt: unknown = new Date("2026-06-01T00:00:00.000Z");
assertDateAfter(dueAt, new Date("2026-01-01T00:00:00.000Z"));
// dueAt is now narrowed to DateSource
Section titled “Source”Source file: src/assert/date-after/date-after.assert.ts
