1 |
|
2 |
|
3 | type Errback = (error?: Error) => void;
|
4 |
|
5 | export declare function wait(delay: number, fn: (...args: any[]) => void): NodeJS.Timeout;
|
6 |
|
7 | export declare function isNode(): boolean;
|
8 |
|
9 | export declare function isTTY(): boolean;
|
10 |
|
11 | export declare function bool(value: any): boolean | null;
|
12 |
|
13 | export declare function useColors(): boolean;
|
14 |
|
15 | export declare function color(value: any, color: Function): string;
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export declare function inspect(value: any, opts?: any): string;
|
22 |
|
23 | export declare function log(...args: any): void;
|
24 |
|
25 | export declare function logComparison(actual: any, expected: any, error: Error | string | any): void;
|
26 |
|
27 | export declare function equal(actual: any, expected: any, testName?: string, next?: Errback): void | never;
|
28 |
|
29 | export declare function gte(actual: any, expected: any, testName?: string, next?: Errback): void | never;
|
30 |
|
31 | export declare function lte(actual: any, expected: any, testName?: string, next?: Errback): void | never;
|
32 |
|
33 | export declare function gt(actual: any, expected: any, testName?: string, next?: Errback): void | never;
|
34 |
|
35 | export declare function lt(actual: any, expected: any, testName?: string, next?: Errback): void | never;
|
36 |
|
37 | export declare function undef(actual: any, testName?: string, next?: Errback): void;
|
38 |
|
39 | export declare function nullish(actual: any, testName?: string, next?: Errback): void;
|
40 |
|
41 | export declare function deepEqual(actual: any, expected: any, testName?: string, next?: Errback): void | never;
|
42 |
|
43 | export declare function contains(actual: any, expected: any, testName?: string, next?: Errback): void | never;
|
44 |
|
45 | export declare function notContains(actual: any, expected: any, testName?: string, next?: Errback): void | never;
|
46 |
|
47 | export declare function errorEqual(actualError: any, expectedError: any, testName?: string, next?: Errback): void | never;
|
48 |
|
49 | export declare function returnViaCallback(value: any): () => typeof value;
|
50 |
|
51 | export declare function completeViaCallback(value: any, delay?: number): (complete: (error: null, result: typeof value) => void) => void;
|
52 |
|
53 | export declare function errorViaCallback(error: Error | string, delay?: number): (complete: (error: Error | string) => void) => void;
|
54 |
|
55 | export declare function returnErrorViaCallback(error?: Error | string): () => Error;
|
56 |
|
57 | export declare function throwErrorViaCallback(error?: Error | string): () => never;
|
58 |
|
59 | export declare function expectViaCallback(...expected: any): (...actual: any) => void;
|
60 |
|
61 |
|
62 |
|
63 | export declare function expectErrorViaCallback(expected: Error | string, testName?: string, next?: Errback): (actual: Error | string) => void;
|
64 |
|
65 | export declare function expectThrowViaFunction(expected: Error | string, fn: () => never, testName?: string, next?: Errback): void;
|
66 |
|
67 | export declare function expectErrorViaFunction(): never;
|
68 |
|
69 | export declare function expectFunctionToThrow(): never;
|
70 | export {};
|
71 |
|
\ | No newline at end of file |