Skip to content

Releases: domenic/mocha-as-promised

2.0.0

15 Dec 00:16
Compare
Choose a tag to compare

Mocha as Promised will now automatically detect and duck-punch all loaded Mocha instances in a Node.js setting. (#25, @nowells) This could be important if you are loading multiple Mocha instances, but only using one of them; previously Mocha as Promised could duck-punch the wrong one.

As a breaking change, the argument to the Mocha as Promised function, if not omitted, must now be an array.

1.4.1

29 Oct 04:20
Compare
Choose a tag to compare
  • Fixed to work with thenables that are also functions, e.g. those returned by some Chai as Promised asserters. (#22)

1.4.0

29 Oct 04:22
Compare
Choose a tag to compare

This release introduces a more reliable method of finding the loaded instance of Mocha when run under Node.js. Thanks to @marclitchfield for his pull request #15.