We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f4b397b + 5b0830b commit 86d1044Copy full SHA for 86d1044
chai-as-promised/chai-as-promised-tests.ts
@@ -9,6 +9,7 @@ chai.use(chaiAsPromised);
9
var promise: any;
10
chai.expect(promise).to.eventually.equal(3);
11
chai.expect(promise).to.become(3);
12
+chai.expect(promise).to.be.fulfilled;
13
chai.expect(promise).to.be.rejected;
14
chai.expect(promise).to.be.rejectedWith(Error);
15
chai.expect(promise).to.notify(() => console.log('done'));
chai-as-promised/chai-as-promised.d.ts
@@ -14,6 +14,7 @@ declare module Chai {
interface Assertion {
16
become(expected: any): Assertion;
17
+ fulfilled: Assertion;
18
rejected: Assertion;
19
rejectedWith(expected: any): Assertion;
20
notify(fn: Function): Assertion;
0 commit comments