UNPKG

jest-date

Version:

Custom jest matchers to test dates

18 lines (17 loc) 445 B
/// <reference types="jest" /> declare global { namespace jest { interface Matchers<R, T> { /** * Assert whether a date is thursday or not. * @example * expect(new Date()).toBeThursday() */ toBeThursday(): R; } } } export declare function toBeThursday(this: jest.MatcherUtils, received: Date): { pass: boolean; message: () => string; };