Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

unexpected

unexpectedjs64.4kMIT13.2.1

Extensible BDD assertion toolkit

assertion, test, assert

readme

changelog

v13.2.0 (2023-07-20)

Pull requests

  • #855 Don't require array-like subtypes to have the same constructor in order to be equal (Andreas Lind)

Commits to master

v13.1.0 (2022-12-23)

Pull requests

Commits to master

v13.0.1 (2022-08-22)

Pull requests

  • #852 Fix bug that caused expect({foo: 123}, 'to satisfy', {foo: undefined}) to pass (Andreas Lind)

Commits to master

v13.0.0 (2022-04-26)

Pull requests

Commits to master

v12.0.4 (2022-02-22)

v12.0.3 (2021-05-13)

v12.0.2 (2021-05-07)

v12.0.1 (2021-04-29)

Pull requests

Commits to master

v12.0.0 (2020-11-19)

Pull requests

Commits to master

v11.15.1 (2020-11-18)

v11.15.0 (2020-09-10)

Pull requests

Commits to master

v11.14.0 (2020-03-24)

v11.13.0 (2020-02-13)

Pull requests

Commits to master

v11.12.1 (2019-12-31)

Pull requests

Commits to master

v11.12.0 (2019-12-26)

v11.11.0 (2019-12-19)

Pull requests

  • #675 Always define Symbol and Buffer, even if the runtime doesn't support them (Andreas Lind)

Commits to master

v11.10.0 (2019-12-18)

Pull requests

Commits to master

v11.9.0 (2019-12-15)

Pull requests

Commits to master

v11.8.1 (2019-11-12)

v11.8.0 (2019-08-28)

Pull requests

Commits to master

v11.7.0 (2019-07-14)

Pull requests

Commits to master

v11.6.1 (2019-06-13)

Pull requests

Commits to master

v11.6.0 (2019-05-20)

Pull requests

  • #555 expect.it: Forward flags to assertions further down the parameter list (Andreas Lind)
  • #636 Upgrade rollup-plugin-commonjs to version 10.0.0 (depfu[bot])

Commits to master

v11.5.1 (2019-05-12)

v11.5.0 (2019-05-10)

  • #632 Inspect Buffers with Buffer.from([0x00, ...]) instead of Buffer([0x00, ...]) (Andreas Lind)
  • #630 Upgrade eslint-plugin-node to version 9.0.1 (depfu[bot])

v11.4.1 (2019-05-02)

v11.4.0 (2019-04-25)

  • #625 Do not highlight "trailing" whitespace in diff chunks that aren't the end of the line (Andreas Lind)
  • #610 exportStyle: Pass on the allowRedefinition parameter to the parent's addStyle (Andreas Lind)

v11.3.0 (2019-04-24)

Pull requests

Commits to master

v11.2.0 (2019-03-13)

Pull requests

Commits to master

v11.1.2 (2019-03-13)

Pull requests

Commits to master

v11.1.1 (2019-03-01)

Pull requests

Commits to master

v11.1.0 (2019-02-25)

Pull requests

Commits to master

v11.0.1 (2019-01-15)

Pull requests

Commits to master

v11.0.0 (2019-01-06)

Pull requests

Commits to master

v10.40.2 (2019-01-02)

Pull requests

  • #554 mocha: Use --require unexpected-markdown instead of --compilers ... (Andreas Lind)

Commits to master

v10.40.1 (2018-12-31)

Pull requests

  • #553 Fix inspection of single line arrow functions that have a linebreak right after the arrow (Andreas Lind)

Commits to master

v10.40.0 (2018-12-26)

Pull requests

Commits to master

v10.39.2 (2018-11-18)

Pull requests

Commits to master

v10.39.1 (2018-09-30)

Pull requests

Commits to master

v10.39.0 (2018-09-06)

Pull requests

Commits to master

v10.38.0 (2018-05-22)

Pull requests

Commits to master

v10.37.7 (2018-05-05)

Pull requests

  • #465 Fix key in value check that were not converted to type.hasKey(). (Alex J Burke)

Commits to master

v10.37.6 (2018-05-02)

Pull requests

Commits to master

v10.37.5 (2018-04-18)

Pull requests

Commits to master

v10.37.4 (2018-04-10)

Pull requests

Commits to master

v10.37.3 (2018-04-09)

Pull requests

Commits to master

v10.37.2 (2018-02-12)

v10.37.1 (2018-02-11)

Pull requests

Commits to master

v10.37.0 (2018-02-01)

Pull requests

Commits to master

v10.36.3 (2018-01-19)

Pull requests

Commits to master

v10.36.2 (2017-11-20)

Pull requests

Commits to master

v10.36.1 (2017-11-12)

Pull requests

Commits to master

v10.36.0 (2017-10-05)

Pull requests

Commits to master

v10.34.5 (2017-09-03)

v10.34.4 (2017-09-03)

v10.34.3 (2017-09-03)

v10.34.2 (2017-09-03)

v10.34.0 (2017-09-03)

Pull requests

Commits to master

v10.33.2 (2017-08-14)

Pull requests

  • #415 Don't break when a function has its own custom #toString (Andreas Lind)
  • #414 to have properties: Allow numerical property names passed as either strings or numbers (Andreas Lind)

Commits to master

v10.33.1 (2017-08-05)

v10.33.0 (2017-08-01)

Pull requests

  • #409 Replace browserify with rollup, add source map and uglify unexpected.js (Andreas Lind)
  • #406 Remove the ability for a plugin to specify required dependencies (Andreas Lind)
  • #410 added: plugin unexpected-date (Sushant)

Commits to master

v10.32.1 (2017-07-15)

Pull requests

  • #408 Fix inspection of bound functions (broken in 4485bf622 / 10.30.0) (Andreas Lind)

Commits to master

v10.32.0 (2017-07-06)

Pull requests

Commits to master

v10.31.0 (2017-07-02)

Pull requests

  • #401 added: support for property descriptors (Sushant)

Commits to master

v10.30.0 (2017-07-01)

Pull requests

  • #387 Support inspection of arrow functions (Andreas Lind)
  • #396 Don't allow a compound assertion where (a prefix of) the last half is not an existing assertion (Andreas Lind)
  • #400 addStyle & installTheme: Return the expect function rather than the magicpen instance (for chaining) (Andreas Lind)
  • #398 Document will-throw-a assertions for functions that take input (Nicklas Laine Overgaard)

Commits to master

v10.29.0 (2017-05-12)

Pull requests

Commits to master

v10.28.0 (2017-05-08)

Pull requests

Commits to master

v10.27.0 (2017-04-17)

Pull requests

Commits to master

v10.26.3 (2017-03-02)

Pull requests

  • #381 Fix the error message when an object is exhaustively satisfied against an object, and some keys are missing (Andreas Lind)
  • #379 Upgraded Jest to the newest version. (Sune Simonsen)

Commits to master

v10.26.2 (2017-02-27)

v10.26.1 (2017-02-26)

Pull requests

Commits to master

v10.26.0 (2017-02-16)

Pull requests

  • #372 addAssertion: Fail when the handler takes too many parameters (Andreas Lind)
  • #371 Fix: to exhaustively satisfy doesn't consider a missing property to be identical to a property with a value of undefined (#370) (Andreas Lind)

Commits to master

v10.25.0 (2017-02-04)

Pull requests

Commits to master

v10.24.0 (2017-01-26)

Pull requests

Commits to master

v10.23.0 (2017-01-23)

v10.22.2 (2017-01-20)

Pull requests

Commits to master

v10.22.1 (2017-01-19)

Pull requests

  • #361 Jest seems to just print the stack, so we need the error message in the stack (Sune Simonsen)

Commits to master

v10.22.0 (2017-01-09)

v10.21.1 (2016-12-27)

Pull requests

Commits to master

v10.21.0 (2016-12-18)

Pull requests

Commits to master

v10.20.0 (2016-11-27)

Pull requests

  • #340 Add 'to be fulfilled with a value satisfying' and 'to be rejected with error satisfying' (Joel Mukuthu)
  • #348 to have (items|values|keys) satisfying: Only allow one <any> as the value, not <any+> (Andreas Lind)
  • #349 to have keys satisfying, to have values satisfying: Disallow an empty array (Andreas Lind)

Commits to master

v10.19.0 (2016-11-14)

Pull requests

  • #344 Add '[not] to be one of' assertion (Morten Siebuhr)
  • #332 Consistently return the output from the inspect and diff methods of the built-in types (Andreas Lind)
  • #336 Use eslint-plugin-import (especially import/no-extraneous-dependencies). (Andreas Lind)

Commits to master

v10.18.1 (2016-09-26)

v10.18.0 (2016-09-26)

Pull requests

Commits to master

v10.17.2 (2016-09-14)

v10.17.1 (2016-09-14)

Pull requests

Commits to master

v10.17.0 (2016-09-02)

v10.16.0 (2016-08-22)

Pull requests

Commits to master

v10.15.1 (2016-08-05)

Pull requests

  • #327 Fix subject compaction in nested settings (Andreas Lind)
  • #326 Avoid some .then(function () {return something}) constructs using promise.tap (Andreas Lind)

Commits to master

v10.15.0 (2016-07-15)

Pull requests

Commits to master

v10.14.2 (2016-06-23)

Pull requests

Commits to master

v10.14.1 (2016-06-22)

v10.14.0 (2016-06-22)

Pull requests

  • #310 Move the magicpen type into a separate unexpected-magicpen plugin (Andreas Lind)
  • #313 Fix case where mocha 2.2.0+ sidesteps the footgun detection by suppre… (Andreas Lind)

Commits to master

v10.13.3 (2016-05-20)

Pull requests

Commits to master

v10.13.2 (2016-04-19)

v10.13.1 (2016-04-17)

Pull requests

Commits to master

v10.13.0 (2016-04-06)

Pull requests

Commits to master

v10.12.0 (2016-04-05)

Pull requests

Commits to master

v10.11.1 (2016-03-31)

v10.11.0 (2016-03-31)

Pull requests

Commits to master

v10.10.12 (2016-03-18)

v10.10.11 (2016-03-18)

v10.10.10 (2016-03-17)

Pull requests

Commits to master

v10.10.9 (2016-03-17)

Pull requests

  • #281 to exhaustively satisfy: Don't break with non-enumerable properties and allow matching on prototype properties (Andreas Lind)

Commits to master

v10.10.8 (2016-03-13)

Pull requests

  • #279 expect.it: Always fail when there's a misspelled assertion (Andreas Lind)

Commits to master

v10.10.6 (2016-03-13)

Pull requests

  • #280 Don't consider two different functions equal even if their toString() methods return the same value (Andreas Lind)

Commits to master

v10.10.5 (2016-03-11)

v10.10.4 (2016-03-09)

Pull requests

  • #277 Make unexpected errors more resilient to weird post processing of the stack (Sune Simonsen)

Commits to master

v10.10.3 (2016-03-09)

Pull requests

Commits to master

v10.10.2 (2016-03-07)

v10.10.1 (2016-03-07)

v10.10.0 (2016-03-04)

Pull requests

Commits to master

v10.9.1 (2016-02-27)

Pull requests

Commits to master

v10.9.0 (2016-02-27)

Pull requests

Commits to master

v10.8.4 (2016-02-26)

v10.8.3 (2016-02-26)

v10.8.2 (2016-02-18)

v10.8.1 (2016-01-29)

v10.8.0 (2016-01-25)

Pull requests

  • #258 Implement 'to have (items|values) exhaustively satisfying'. (Andreas Lind)
  • #256 Fix propagation of a missing assertion error in expect.it(...).or(...) constructs (Andreas Lind)

Commits to master

v10.7.0 (2016-01-22)

Pull requests

Commits to master

v10.6.1 (2016-01-22)

v10.6.0 (2016-01-22)

Pull requests

  • #250 Allow subtypes of object and array-like more fine-grained control over newlines and indentation (Andreas Lind)
  • #247 Added '<object> not to have keys' assertion (Joel Mukuthu)

Commits to master

v10.5.1 (2016-01-08)

Pull requests

Commits to master

v10.5.0 (2015-12-23)

Pull requests

Commits to master

v10.4.0 (2015-12-09)

v10.3.1 (2015-11-23)

v10.3.0 (2015-11-22)

Pull requests

  • #230 Improve the appearance of missing properties in object diffs and to satisfy diffs (Andreas Lind)

Commits to master

v10.2.0 (2015-11-17)

v10.1.0

v10.0.2 (2015-10-23)

Pull requests

  • #218 oathbreaker: Don't recapture the stack of non-Unexpected errors. (Andreas Lind)

Commits to master

v10.0.1

v10.0.0 (2015-10-08)

Pull requests

Commits to master

v9.16.1 (2015-10-05)

v9.16.0 (2015-09-24)

v9.15.0 (2015-09-24)

v9.14.0 (2015-09-24)

v9.13.0 (2015-09-18)

v9.12.3 (2015-09-17)

v9.12.2 (2015-09-17)

v9.12.1 (2015-09-17)

v9.12.0 (2015-09-16)

Pull requests

Commits to master

v9.11.1 (2015-09-13)

Pull requests

Commits to master

v9.11.0 (2015-09-10)

v9.10.0 (2015-09-10)

v9.9.0 (2015-09-07)

Pull requests

Commits to master

v9.8.1 (2015-09-04)

v9.8.0 (2015-09-04)

v9.7.0 (2015-09-04)

v9.6.0 (2015-08-18)

v9.5.2 (2015-08-18)

Pull requests

  • #205 Fix patching of the test framework's 'it' function in test suites spanning multiple files (Andreas Lind)

Commits to master

v9.5.1 (2015-08-18)

Pull requests

Commits to master

v9.5.0 (2015-08-08)

Pull requests

Commits to master

v9.4.0 (2015-07-27)

Pull requests

  • #197 Fix stack trace of errors that has been thrown when the work queue has been drained (Sune Simonsen)
  • #193 installPlugin => use, allow functions as plugins (Andreas Lind)
  • #192 installPlugin: Error out if an already installed plugin has the same … (Andreas Lind)

Commits to master

v9.3.0 (2015-07-21)

Pull requests

Commits to master

v9.2.1 (2015-07-08)

v9.2.0 (2015-07-06)

v9.1.0 (2015-07-06)

v9.0.0 (2015-07-03)

Pull requests

Commits to master

v8.5.1 (2015-06-30)

v8.5.0 (2015-06-24)

Pull requests

  • #179 to call the callback: Resolve the promise with an array containing th… (Andreas Lind)
  • #176 Implemented "to call the callback with [no] error" assertion. (Andreas Lind)
  • #177 Pull the unexpected-promise plugin into core. (Andreas Lind)

Commits to master

v8.4.1 (2015-06-23)

v8.4.0 (2015-06-21)

Pull requests

  • #174 expect.fail with an object: Set all properties on the UnexpectedError. (Andreas Lind)

Commits to master

v8.3.0 (2015-06-16)

Pull requests

Commits to master

v8.2.0 (2015-06-15)

v8.1.3 (2015-06-15)

v8.1.2 (2015-06-13)

v8.1.1 (2015-06-13)

v8.1.0 (2015-06-12)

Pull requests

Commits to master

v8.0.1 (2015-06-10)

v8.0.0 (2015-06-10)

Pull requests

Commits to master

v7.5.1 (2015-06-01)

v7.5.0 (2015-05-22)

v7.4.3 (2015-05-20)

v7.4.2 (2015-05-19)

v7.4.1 (2015-05-19)

v7.4.0 (2015-05-18)

Pull requests

Commits to master

v7.3.0 (2015-05-13)

v7.2.0 (2015-05-13)

v7.1.2 (2015-05-12)

v7.1.1 (2015-05-11)

v7.1.0 (2015-05-11)

v7.0.5 (2015-05-04)

v7.0.4 (2015-04-30)

v7.0.3 (2015-04-29)

v7.0.2 (2015-04-29)

v7.0.1 (2015-04-22)

v7.0.0 (2015-04-17)

Pull requests

Commits to master

v6.4.0 (2015-03-13)

v6.3.1 (2015-03-12)

v6.3.0 (2015-03-12)

v6.2.1 (2015-03-10)

v6.2.0 (2015-03-09)

v6.1.1 (2015-03-06)

v6.1.0 (2015-03-06)

v6.0.7 (2015-03-05)

v6.0.6 (2015-03-05)

Pull requests

Commits to master

v6.0.5 (2015-03-03)

v6.0.4 (2015-03-03)

v6.0.3 (2015-03-03)

v6.0.2 (2015-03-03)

v6.0.1 (2015-03-03)

v6.0.0 (2015-03-03)

Pull requests

  • #120 Use Object.is when testing for equality where the === operator was previously used (Andreas Lind)
  • #93 Added missing metalsmith-static dev-dependency (Peter Müller)

Commits to master

v5.10.0 (2015-02-27)

Pull requests

  • #123 should be => should equal when comparisons use equal semantics. (Andreas Lind)

Commits to master

v5.9.3 (2015-02-20)

v5.9.2 (2015-02-18)

v5.9.1 (2015-02-12)

v5.9.0 (2015-02-12)

v5.8.1 (2015-02-02)

v5.8.0 (2015-01-27)

v5.7.1 (2015-01-24)

v5.7.0 (2015-01-23)

v5.6.5 (2015-01-22)

Pull requests

  • #119 Speed up travis CI runs by using new docker infrastructure and caching n... (Peter Müller)

Commits to master

v5.6.4 (2015-01-21)

v5.6.3 (2015-01-21)

v5.6.2 (2015-01-21)

v5.6.1 (2015-01-21)

v5.6.0 (2015-01-20)

v5.5.2 (2015-01-20)

v5.5.1 (2015-01-19)

v5.5.0 (2015-01-16)

v5.4.1 (2015-01-16)

v5.4.0 (2015-01-15)

Pull requests

  • #113 Introduce a NaN type so the number assertions can refuse to work on it (Andreas Lind)

Commits to master

v5.3.0 (2015-01-14)

Pull requests

Commits to master

v5.2.0 (2015-01-12)

Pull requests

  • #102 'when called with' and 'when passed as parameters to': Set the errorMode to 'nested' (Andreas Lind)

Commits to master

v5.1.6 (2015-01-07)

v5.1.5 (2015-01-07)

v5.1.4 (2015-01-05)

v5.1.2 (2015-01-05)

Pull requests

Commits to master

v5.1.1 (2014-12-24)

v5.1.0 (2014-12-23)

v5.0.0 (2014-12-22)

Pull requests

Commits to master

v4.1.6 (2014-08-26)

Pull requests

Commits to master

v4.1.5 (2014-08-21)

v4.1.4 (2014-08-20)

v4.1.3 (2014-08-19)

v4.1.2 (2014-08-18)

v4.1.1 (2014-08-18)

v4.1.0 (2014-08-18)

v4.0.5 (2014-08-14)

v4.0.4 (2014-08-13)

v4.0.2 (2014-08-13)

v4.0.1 (2014-08-13)

v4.0.0 (2014-08-13)

v3.2.4 (2014-08-12)

Pull requests

Commits to master

v3.2.3 (2014-07-02)

v3.2.2 (2014-06-03)

v3.2.1 (2014-05-30)

v3.2.0 (2014-05-15)

Pull requests

Commits to master

v3.1.7 (2014-05-13)

v3.1.6 (2014-04-27)

v3.1.5 (2014-04-22)

Pull requests

  • #37 to not only have keys should expect the given keys to be present (Sune Simonsen)

Commits to master

v3.1.4 (2014-04-15)

v3.1.2 (2014-04-08)

Pull requests

Commits to master

v3.1.0 (2014-04-05)

Pull requests

Commits to master

v3.0.1 (2014-03-21)

v3.0.0 (2014-03-21)

Pull requests

Commits to master

v2.1.8 (2014-03-07)

v2.1.7 (2014-03-07)

v2.1.6 (2014-02-26)

v2.1.5 (2014-02-26)

v2.1.4 (2014-02-17)

v2.1.3 (2014-02-17)

v2.1.2 (2014-02-16)

v2.1.1 (2014-02-16)

v2.1.0 (2014-01-18)

v2.0.0 (2013-12-20)

Pull requests

Commits to master

v1.1.3 (2013-12-13)

v1.1.2 (2013-12-13)

v1.1.1 (2013-12-11)

v1.1.0 (2013-12-05)

v1.0.13 (2013-12-05)

v1.0.12

v1.0.11

v1.0.10 (2013-11-16)

v1.0.9 (2013-11-16)

v1.0.8 (2013-11-15)

v1.0.7

v1.0.6 (2013-11-13)

Pull requests

Commits to master

v1.0.5 (2013-11-12)

v1.0.4 (2013-11-12)

v1.0.2 (2013-11-11)

v1.0.1 (2013-09-17)

Pull requests

Commits to master

v1.0.0 (2013-09-16)

Pull requests

Commits to master

v0.1.1 (2013-09-11)

  • #4 Remove unexpected's entries from the stack traces of the thrown error objects

This is really nice - thank very much! (Andreas Lind Petersen)

v0.1.0 (2013-09-03)

Pull requests

Commits to master

v0.0.7 (2013-09-03)

v0.0.6 (2013-08-27)

v0.0.5 (2013-08-25)

v0.0.4 (2013-08-15)