Add all keyword to chai-as-promised (#9041)

* Add all to promised assertions.

* Changed the definitions to match chai.d.ts.
This commit is contained in:
Ivan Vasilov
2016-04-23 16:03:04 +09:00
committed by Masahiro Wakame
parent 44d3872606
commit 2a83c342f7
+6
View File
@@ -36,6 +36,7 @@ declare namespace Chai {
// From chai
not: PromisedAssertion;
deep: PromisedDeep;
all: PromisedKeyFilter;
a: PromisedTypeComparison;
an: PromisedTypeComparison;
include: PromisedInclude;
@@ -129,6 +130,10 @@ declare namespace Chai {
property: PromisedProperty;
}
interface PromisedKeyFilter {
keys: PromisedKeys;
}
interface PromisedEqual {
(value: any, message?: string): PromisedAssertion;
}
@@ -151,6 +156,7 @@ declare namespace Chai {
(value: number, message?: string): PromisedAssertion;
keys: PromisedKeys;
members: PromisedMembers;
all: PromisedKeyFilter;
}
interface PromisedKeys {