Socket
Socket
Sign inDemoInstall

truffle-assertions

Package Overview
Dependencies
1
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.7.2 to 0.8.0

5

package.json
{
"name": "truffle-assertions",
"version": "0.7.2",
"version": "0.8.0",
"description": "Additional assertions and utilities for testing Ethereum smart contracts in Truffle unit tests",

@@ -37,4 +37,3 @@ "main": "index.js",

"dependencies": {
"assertion-error": "^1.1.0",
"web3": "^1.0.0-beta.35"
"assertion-error": "^1.1.0"
},

@@ -41,0 +40,0 @@ "devDependencies": {

@@ -28,2 +28,5 @@ # truffle-assertions

I also gave a talk at TruffleCon 2018 that explains a few different use cases of the library:
* [TruffleCon 2018: Using events to unit test smart contracts with Truffle](https://www.youtube.com/watch?v=0yjlU1vx0HM) ([Slides](/docs/trufflecon-2018-presentation-slides.pdf))
## Exported functions

@@ -113,2 +116,4 @@

**Note:** This function assumes that web3 is injected into the tests, which truffle does automatically. If you're not using truffle, you should import web3 manually at the top of your test file.
```javascript

@@ -115,0 +120,0 @@ let contractInstance = await Contract.new();

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc