Releases: mesaugat/chai-exclude
Releases · mesaugat/chai-exclude
v1.0.9
- Fix mishap in docs ¯\(ツ)/¯
v1.0.8
- Fix
isObject
to work with classes (#12)
v1.0.7
- Update TypeScript declaration file to include
assert.deepEqualExcluding
and assert.deepEqualExcludingEvery
declarations (#11)
v1.0.6
- Add assert variant for
excluding
and excludingEvery
(#10)
/**
* @param { T } actual
* @param { T } expected
* @param { string | string[] } excluding
* @param { string } message
*/
assert.deepEqualExcluding(actual, expected, excluding, [message])
assert.deepEqualExcludingEvery(actual, expected, excluding, [message])
v1.0.5
- Make chai-exclude work with array of objects (#8)
expect([{ a: 'a', b: 'b' }]).excluding('a').to.deep.equal([{ b: 'b' }])
v1.0.4
- Exclude properties from array of objects (#6)
v1.0.3
excluding
and excludingEvery
will now exclude keys from both sides
These two examples are the same.
expect({ a: 'a', b: 'b' }).excluding('a').to.deep.equal({ b: 'b' })
expect({ a: 'a', b: 'b' }).excluding('a').to.deep.equal({ a: 'z', b: 'b' });
v1.0.2
- Update TypeScript bindings
v1.0.1
- Exclude every property in a deeply nested object using
excludingEvery
- Include TypeScript declaration file
Note: The TypeScript bindings for v1.0.1
might not work. Please upgrade to v1.0.2
v1.0.0
- Exclude properties in an object using
excluding
before a deep equal comparison