UNPKG

kizu

Version:

An easy-to-use, fast, and defensive Typescript/Javascript test runner designed to help you to write simple, readable, and maintainable tests.

13 lines (12 loc) 703 B
import { Assertion } from '../test'; export type AssertionAPI = { pass: (description?: string) => void; fail: (description?: string) => void; isTrue: (condition: boolean, description?: string) => void; isFalse: (condition: boolean, description?: string) => void; equal: (actual: any, expected: any, description?: string) => void; isError: (actual: any, expected: any, description?: string) => void; errorsEquivalent: (actual: any, expected: any, description?: string) => void; throws: (experiment: () => any, expectedErr: Error | RegExp, description?: string) => Promise<void>; }; export declare function createAssertionPredicates(assertions: Assertion[]): AssertionAPI;