UNPKG

@assertive-ts/core

Version:

A type-safe fluent assertion library

30 lines (29 loc) 629 B
import { Assertion } from "./Assertion"; /** * Encapsulates assertion methods applicable to values of type boolean */ export declare class BooleanAssertion extends Assertion<boolean> { constructor(actual: boolean); /** * Check if the value is `true`. * * @example * ``` * expect(tsIsCool).toBeTrue(); * ``` * * @returns the assertion instance */ toBeTrue(): this; /** * Check if the value is `false`. * * @example * ``` * expect(pigsFly).toBeFalse(); * ``` * * @returns the assertion instance */ toBeFalse(): this; }