CHANGES.md
May 10, 2016 ยท View on GitHub
HEAD
toMatchandtoNotMatchusetmatchdirectly, so a wider array of objects and patterns are supported
v1.20.1
May 7, 2016
- Objects that have different prototypes are not considered "equal". It was a bug to ever treat them as such.
v1.20.0
May 6, 2016
- Objects that differ only by prototype are considered "equal". This means
e.g. that
expect(Object.create(null)).toEqual({})passes - Restored
isEqualto behaving more like==instead of===. This is a regression that was introduced in 1.13.1 (#62) - Handle non-array keys in
toIncludeKeys(#94, thanks @wuct)
v1.19.0
May 2, 2016
- Spies preserve
lengthproperty of original function ([#90], thanks @nfcampos) - Added ability to pass a
createMessagefunction toassertthat is only called when the assertion fails - Added
toNotIncludeKey(s)alias
v1.18.0
Apr 18, 2016
- Added support for using tmatch in
expect(object).toMatch
v1.17.0
Apr 18, 2016
- Added support for objects in
toExclude(#86, thanks @calebmer) - Added
toIncludeKeysandtoExcludeKeys(#87, thanks @calebmer) - Added
toNotIncludealias fortoExclude - Deprecated
withContextandwithArgs. Use a closure instead. - Updated
is-equalandobject-inspectdependencies
v1.16.0
Mar 23, 1016
- Added support for objects in
toInclude(thanks @elado) - Minor fixes to docs
v1.15.2
Mar 11, 2016
- Removed named exports, fixed a bad 1.15.0 release (#72)
v1.15.0
Mar 10, 2016
- Various build system improvements
v1.14.0
Feb 1, 2016
v1.13.4
Dec 16, 2015
- Fixed comparing two arrays of nested objects when the first items are not equal (#53)
v1.13.3
Dec 14, 2015
- Fix failing Map/Set tests
v1.13.2
Dec 11, 2015
- Bump is-equal dependency to 1.4
v1.13.1
Dec 10, 2015
- Fix comparisons of ES6 iterables Map and Set (#47)
- Fix comparisons of objects with circular references (#50)
- Better error messages in
toThrow/toNotThrow
v1.13.0
Nov 13, 2015
- Fix
toIncludeto usedeepEqualfor comparisons (#44) - Run test suite in browsers
v1.12.2
Oct 13, 2015
- Fix postinstall script on Windows (see #39)
v1.12.1
Oct 10, 2015
- Add support for building on Windows
- Add postinstall npm script for installing from git repo
v1.12.0
Oct 5, 2015
- Add
expect.extend(assertions)(see #34) - Add
expect.restoreSpies()(see #12) - Show object diffs using
toEqual()in Mocha (see #29)
v1.11.1
Sep 26, 2015
- Add
spy.destroy()(see #12)
v1.11.0
Sep 12, 2015
- Add
expect.isSpy() - Significant internal refactoring to use ES6 classes and the Babel transpiler
v1.10.0
Sep 3, 2015