Skip to content

Releases: mesaugat/chai-exclude

v1.0.9

30 Jul 19:31
Compare
Choose a tag to compare
  • Fix mishap in docs ¯\(ツ)

v1.0.8

03 Mar 03:46
Compare
Choose a tag to compare
  • Fix isObject to work with classes (#12)

v1.0.7

05 Feb 16:35
Compare
Choose a tag to compare
  • Update TypeScript declaration file to include assert.deepEqualExcluding and assert.deepEqualExcludingEvery declarations (#11)

v1.0.6

04 Feb 17:12
Compare
Choose a tag to compare
  • 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

13 Jan 11:29
Compare
Choose a tag to compare
  • Make chai-exclude work with array of objects (#8)
expect([{ a: 'a', b: 'b' }]).excluding('a').to.deep.equal([{ b: 'b' }])

v1.0.4

09 Jan 05:54
Compare
Choose a tag to compare
  • Exclude properties from array of objects (#6)

v1.0.3

08 Nov 18:46
Compare
Choose a tag to compare
  • 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

25 Oct 02:16
Compare
Choose a tag to compare
  • Update TypeScript bindings

v1.0.1

23 Oct 07:51
Compare
Choose a tag to compare
  • 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

25 Oct 02:19
Compare
Choose a tag to compare
  • Exclude properties in an object using excluding before a deep equal comparison