1 | /// <reference types="chai" />
|
2 | /// <reference types="chai-as-promised" />
|
3 |
|
4 | declare global {
|
5 | namespace Chai {
|
6 | interface LanguageChains {
|
7 | always: Assertion;
|
8 | }
|
9 |
|
10 | interface Assertion {
|
11 | (message?: string): Assertion;
|
12 | ensure: Assertion;
|
13 | }
|
14 |
|
15 | interface PromisedAssertion extends Eventually, PromiseLike<any> {
|
16 | (message?: string): PromisedAssertion;
|
17 | ensure: PromisedAssertion;
|
18 | }
|
19 | }
|
20 | }
|
21 |
|
22 | declare const dirtyChai: Chai.ChaiPlugin;
|
23 | export = dirtyChai;
|