@push.rocks/smartexpect
Version:
A testing library to manage expectations in code, offering both synchronous and asynchronous assertion methods.
13 lines (12 loc) • 588 B
TypeScript
import { Assertion } from '../smartexpect.classes.assertion.js';
import type { TExecutionType } from '../types.js';
/**
* Namespace for date-specific matchers
*/
export declare class DateMatchers<M extends TExecutionType> {
private assertion;
constructor(assertion: Assertion<Date, M>);
toBeDate(): M extends "async" ? Promise<Assertion<Date, M>> : Assertion<Date, M>;
toBeBeforeDate(date: Date): M extends "async" ? Promise<Assertion<Date, M>> : Assertion<Date, M>;
toBeAfterDate(date: Date): M extends "async" ? Promise<Assertion<Date, M>> : Assertion<Date, M>;
}