toMatch
andtoNotMatch
usetmatch
directly, so a wider array of objects and patterns are supported
May 7, 2016
- Objects that have different prototypes are not considered "equal". It was a bug to ever treat them as such.
May 6, 2016
- Objects that differ only by prototype are considered "equal". This means
e.g. that
expect(Object.create(null)).toEqual({})
passes - Restored
isEqual
to 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)
May 2, 2016
- Spies preserve
length
property of original function ([#90], thanks @nfcampos) - Added ability to pass a
createMessage
function toassert
that is only called when the assertion fails - Added
toNotIncludeKey(s)
alias
Apr 18, 2016
- Added support for using tmatch in
expect(object).toMatch
Apr 18, 2016
- Added support for objects in
toExclude
(#86, thanks @calebmer) - Added
toIncludeKeys
andtoExcludeKeys
(#87, thanks @calebmer) - Added
toNotInclude
alias fortoExclude
- Deprecated
withContext
andwithArgs
. Use a closure instead. - Updated
is-equal
andobject-inspect
dependencies
Mar 23, 1016
- Added support for objects in
toInclude
(thanks @elado) - Minor fixes to docs
Mar 11, 2016
- Removed named exports, fixed a bad 1.15.0 release (#72)
Mar 10, 2016
- Various build system improvements
Feb 1, 2016
Dec 16, 2015
- Fixed comparing two arrays of nested objects when the first items are not equal (#53)
Dec 14, 2015
- Fix failing Map/Set tests
Dec 11, 2015
- Bump is-equal dependency to 1.4
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
Nov 13, 2015
- Fix
toInclude
to usedeepEqual
for comparisons (#44) - Run test suite in browsers
Oct 13, 2015
- Fix postinstall script on Windows (see #39)
Oct 10, 2015
- Add support for building on Windows
- Add postinstall npm script for installing from git repo
Oct 5, 2015
- Add
expect.extend(assertions)
(see #34) - Add
expect.restoreSpies()
(see #12) - Show object diffs using
toEqual()
in Mocha (see #29)
Sep 26, 2015
- Add
spy.destroy()
(see #12)
Sep 12, 2015
- Add
expect.isSpy()
- Significant internal refactoring to use ES6 classes and the Babel transpiler
Sep 3, 2015