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