import { Answerable } from '@serenity-js/core'; import { Expectation } from '../Expectation'; export function isAfter(expected: Answerable): Expectation { return Expectation.thatActualShould('have value that is after', expected) .soThat((actualValue, expectedValue) => actualValue.getTime() > expectedValue.getTime()); }