mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
Updating Chai to have "Include" in "Deep"
Reference: https://github.com/chaijs/chai/blob/master/lib/chai/core/assertions.js#L1452
This commit is contained in:
@@ -337,6 +337,11 @@ function deepEqual3(Date) {
|
||||
expect(a).not.to.deep.equal({});
|
||||
}
|
||||
|
||||
function deepInclude(val) {
|
||||
expect(['foo', 'bar']).to.deep.include(['bar', 'foo']);
|
||||
expect(['foo', 'bar']).not.to.deep.equal(['foo', 'baz' ]);
|
||||
}
|
||||
|
||||
function empty() {
|
||||
function FakeArgs() { };
|
||||
FakeArgs.prototype.length = 0;
|
||||
|
||||
1
chai/chai.d.ts
vendored
1
chai/chai.d.ts
vendored
@@ -132,6 +132,7 @@ declare module chai {
|
||||
|
||||
interface Deep {
|
||||
equal: Equal;
|
||||
include: Include;
|
||||
property: Property;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user