Socket
Socket
Sign inDemoInstall

truffle-assertions

Package Overview
Dependencies
322
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.1 to 0.6.2

6

index.js

@@ -126,4 +126,2 @@ const AssertionError = require('assertion-error');

await asyncFn;
const assertionMessage = createAssertionMessage(message, 'Did not fail');
throw new AssertionError(assertionMessage);
} catch (error) {

@@ -135,3 +133,7 @@ if (errorType && !error.message.includes(errorType) ||

}
// Error was handled by errorType or reason
return;
}
const assertionMessage = createAssertionMessage(message, 'Did not fail');
throw new AssertionError(assertionMessage);
}

@@ -138,0 +140,0 @@

{
"name": "truffle-assertions",
"version": "0.6.1",
"version": "0.6.2",
"description": "Additional assertions and utilities for testing Ethereum smart contracts in Truffle unit tests",

@@ -5,0 +5,0 @@ "main": "index.js",

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