UNPKG

966 BTypeScriptView Raw
1import { Assert, AssertionFunction, AssertionResult, Test } from './interfaces';
2export declare const isAssertionResult: (result: AssertionResult | Test) => result is AssertionResult;
3export declare const AssertPrototype: {
4 equal: AssertionFunction;
5 equals: (...args: any[]) => any;
6 eq: (...args: any[]) => any;
7 deepEqual: (...args: any[]) => any;
8 notEqual: AssertionFunction;
9 notEquals: (...args: any[]) => any;
10 notEq: (...args: any[]) => any;
11 notDeepEqual: (...args: any[]) => any;
12 is: AssertionFunction;
13 same: (...args: any[]) => any;
14 isNot: AssertionFunction;
15 notSame: (...args: any[]) => any;
16 ok: AssertionFunction;
17 truthy: (...args: any[]) => any;
18 notOk: AssertionFunction;
19 falsy: (...args: any[]) => any;
20 fail: AssertionFunction;
21 throws: AssertionFunction;
22 doesNotThrow: AssertionFunction;
23};
24export declare const assert: (collect: any, offset: number, runOnly?: boolean) => Assert;