chai-exclude

Exclude keys to compare from a deep equal operation with chai expect or assert.

MIT License

Downloads
1M
Stars
34
Committers
15

Bot releases are hidden (Show)

chai-exclude - v3.0.0

Published by mesaugat 3 months ago

  • BREAKING: chai-exclude is now an ESM package
  • Supports chai v5 and above #51
chai-exclude - v2.1.1 Latest Release

Published by mesaugat 4 months ago

  • Support for chaining methods like include and contain #47
  • Update vulnerable dev dependencies
chai-exclude - v2.1.0

Published by mesaugat about 3 years ago

  • Upgrade dev dependencies to latest version
  • Update type for plugin argument as per chai
  • Forward returned value from assertEqual (#37)
chai-exclude - v2.0.3

Published by mesaugat over 3 years ago

  • Support for assertion aliases eql and eqls
chai-exclude - v2.0.2

Published by mesaugat over 5 years ago

  • Update vulnerable package standard to latest version ^13.0.2
  • Update vulnerable package lodash to latest version ^4.17.14
chai-exclude - v2.0.1

Published by mesaugat over 5 years ago

  • Update typings path in README
chai-exclude - v2.0.0

Published by mesaugat over 5 years ago

  • Support default export for TypeScript (#19, #20)
  • Add tests to check typings (#21)

Breaking Change:

import chaiExclude from 'chai-exclude' in TypeScript is possible starting v2.0.0

chai-exclude - v1.0.12

Published by mesaugat almost 6 years ago

  • Support chai-exclude to work with babelify and karma (#18)
chai-exclude - v1.0.11

Published by mesaugat almost 6 years ago

  • Use keyof for checking excluded property names (#16)
  • Support for array of objects with TypeScript (#17)
  • Readme updates
  • Upgrade packages
  • Add chai as a peer dependency
chai-exclude - v1.0.10

Published by mesaugat about 6 years ago

  • Fix for object with circular keys (#15)
chai-exclude - v1.0.9

Published by mesaugat about 6 years ago

  • Fix mishap in docs ¯\(ツ)
chai-exclude - v1.0.8

Published by mesaugat over 6 years ago

  • Fix isObject to work with classes (#12)
chai-exclude - v1.0.7

Published by mesaugat over 6 years ago

  • Update TypeScript declaration file to include assert.deepEqualExcluding and assert.deepEqualExcludingEvery declarations (#11)
chai-exclude - v1.0.6

Published by mesaugat over 6 years ago

  • 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])
chai-exclude - v1.0.5

Published by mesaugat almost 7 years ago

  • Make chai-exclude work with array of objects (#8)
expect([{ a: 'a', b: 'b' }]).excluding('a').to.deep.equal([{ b: 'b' }])
chai-exclude - v1.0.4

Published by mesaugat almost 7 years ago

  • Exclude properties from array of objects (#6)
chai-exclude - v1.0.3

Published by mesaugat almost 7 years ago

  • 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' });
chai-exclude - v1.0.0

Published by mesaugat almost 7 years ago

  • Exclude properties in an object using excluding before a deep equal comparison
chai-exclude - v1.0.2

Published by mesaugat almost 7 years ago

  • Update TypeScript bindings
chai-exclude - v1.0.1

Published by mesaugat almost 7 years ago

  • 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