UNPKG

@push.rocks/smartexpect

Version:

A testing library to manage expectations in code, offering both synchronous and asynchronous assertion methods.

14 lines (13 loc) 680 B
import { Assertion } from '../smartexpect.classes.assertion.js'; import type { TExecutionType } from '../types.js'; /** * Namespace for boolean-specific matchers */ export declare class BooleanMatchers<M extends TExecutionType> { private assertion; constructor(assertion: Assertion<boolean, M>); toBeTrue(): M extends "async" ? Promise<Assertion<boolean, M>> : Assertion<boolean, M>; toBeFalse(): M extends "async" ? Promise<Assertion<boolean, M>> : Assertion<boolean, M>; toBeTruthy(): M extends "async" ? Promise<Assertion<boolean, M>> : Assertion<boolean, M>; toBeFalsy(): M extends "async" ? Promise<Assertion<boolean, M>> : Assertion<boolean, M>; }