Skip to content

Latest commit

 

History

History
189 lines (127 loc) · 5.46 KB

CHANGES.md

File metadata and controls

189 lines (127 loc) · 5.46 KB
  • toMatch and toNotMatch use tmatch 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 to assert 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 and toExcludeKeys (#87, thanks @calebmer)
  • Added toNotInclude alias for toExclude
  • Deprecated withContext and withArgs. Use a closure instead.
  • Updated is-equal and object-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

  • Added toBeGreaterThanOrEqualTo and toBeLessThanOrEqualTo (#11 and #59)
  • Added spy.reset() (#57)

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 use deepEqual 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

  • Add expect(spy).toNotHaveBeenCalled()
  • Add expect(obj).toBeAn('array')
  • Add expect(str).toNotMatch(regexp)
  • Use invariant instead of assert where applicable
  • Improve expectation error messages
  • Internal: use eslint for linting