forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjasmine-es6-promise-matchers.d.ts
36 lines (29 loc) · 1022 Bytes
/
jasmine-es6-promise-matchers.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Type definitions for jasmine-es6-promise-matchers
// Project: https://github.com/bvaughn/jasmine-es6-promise-matchers
// Definitions by: Stephen Lautier <https://github.com/stephenlautier>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../jasmine/jasmine.d.ts" />
declare namespace JasminePromiseMatchers {
export function install():void;
export function uninstall():void;
}
declare namespace jasmine {
interface Matchers {
/**
* Verifies that a Promise is (or has been) rejected.
*/
toBeRejected(done?: () => void): boolean;
/**
* Verifies that a Promise is (or has been) rejected with the specified parameter.
*/
toBeRejectedWith(value: any, done?: () => void): boolean;
/**
* Verifies that a Promise is (or has been) resolved.
*/
toBeResolved(done?: () => void): boolean;
/**
* Verifies that a Promise is (or has been) resolved with the specified parameter.
*/
toBeResolvedWith(value: any, done?: () => void): boolean;
}
}