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:
Jacob Danton
2015-04-26 08:53:30 -07:00
parent 7fa5d15cb2
commit f31589998d
2 changed files with 6 additions and 0 deletions

View File

@@ -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
View File

@@ -132,6 +132,7 @@ declare module chai {
interface Deep {
equal: Equal;
include: Include;
property: Property;
}