truffle-assertions
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -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", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14082
150
0