Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Releases: rkalis/truffle-assertions

v0.6.2

17 Oct 11:38
Compare
Choose a tag to compare

v0.6.1

10 Oct 18:37
Compare
Choose a tag to compare

Use this release instead of 0.6.0.

  • 🐛 Removed accidentally published docs/ folder from package.

v0.6.0

10 Oct 18:41
Compare
Choose a tag to compare

⚠️ Accidentally published docs/ folder to npm, increasing package size - don't use this version

  • 🐛 Added Truffle v5 / Web3 1.x support to truffleAssert.createTransactionResult().
  • 🔨 Refactored truffleAssert.fails() to use async/await instead of promises.

v0.5.0

24 Sep 12:33
Compare
Choose a tag to compare
  • ✨ Added truffleAssert.fails() function to assert that a contract method fails with a passed ErrorType.
  • ✨ Added truffleAssert.reverts() function, which is a convenience alias for fails() but with ErrorType.REVERT.
  • 📚 Added documentation for fails() and reverts().
  • 📚 Cleared up which parameters are optional.

v0.4.0

23 Sep 10:56
Compare
Choose a tag to compare
  • ✨ Added truffleAssert.createTransactionResult() to help with asserting emitted events without direct access to a transaction result.
  • 📚 Added documentation for truffleAssert.createTransactionResult().
  • ➖ Removed dependency on Lodash and replaced with native JS functionality.
  • ➕ Added dependency on Web3 to create transaction results.
  • 🔨 Changed internal API.

v0.3.1

23 Sep 10:48
Compare
Choose a tag to compare

Use this release instead of 0.3.0.

  • 🐛 Added test/ folder to npmignore.

v0.3.0

23 Sep 10:47
Compare
Choose a tag to compare

⚠️ Accidentally published test/ folder to npm, increasing package size - don't use this version

  • ✨ Added truffleAssert.prettyPrintEmittedEvents() to show all events that were emitted in a transaction.
  • 🔨 Added these pretty printed events to default assertion error message.
  • 📚 Added documentation for truffleAssert.prettyPrintEmittedEvents().

v0.2.0

23 Sep 10:43
Compare
Choose a tag to compare
  • ✨ Added support for custom assertion messages.
  • 📚 Added custom assertion messages to documentation.

From earlier releases 0.1.x:

  • 🎉 Initial package version, includes truffleAssert.eventEmitted() and truffleAssert.eventNotEmitted() with documentation.