1 |
|
2 |
|
3 | import { DiffOptions } from "./get-diffable-html";
|
4 |
|
5 | declare global {
|
6 | namespace Chai {
|
7 | interface Assertion extends LanguageChains, NumericComparison, TypeComparison {
|
8 | dom: Assertion;
|
9 | lightDom: Assertion;
|
10 | shadowDom: Assertion;
|
11 | notEqual(actual: Object, expected: Object, message?: string): void;
|
12 | equalSnapshot(options?: Object): Assertion;
|
13 | notEqualSnapshot(options?: Object): Assertion;
|
14 | }
|
15 |
|
16 | interface Assert {
|
17 | dom: Pick<Assertion, 'equal'|'notEqual'|'equalSnapshot'|'notEqualSnapshot'>;
|
18 | lightDom: Pick<Assertion, 'equal'|'notEqual'|'equalSnapshot'|'notEqualSnapshot'>;
|
19 | shadowDom: Pick<Assertion, 'equal'|'notEqual'|'equalSnapshot'|'notEqualSnapshot'>;
|
20 | equalSnapshot(fixture: any, options?: DiffOptions): Assertion;
|
21 | notEqualSnapshot(fixture: any, options?: DiffOptions): Assertion;
|
22 |
|
23 | equal<T>(actual: T, expected: T, message?: string, options?: DiffOptions): void;
|
24 | equal<T>(actual: T, expected: T, message?: string): void;
|
25 | equal<T>(actual: T, expected: T, options?: DiffOptions): void;
|
26 |
|
27 | notEqual<T>(actual: T, expected: T, message?: string, options?: DiffOptions): void;
|
28 | notEqual<T>(actual: T, expected: T, message?: string): void;
|
29 | notEqual<T>(actual: T, expected: T, options?: DiffOptions): void;
|
30 | }
|
31 |
|
32 | interface Equal {
|
33 | (value: any, message?: string, options?: DiffOptions): Assertion;
|
34 | (value: any, options?: DiffOptions): Assertion;
|
35 | }
|
36 | }
|
37 | } |
\ | No newline at end of file |