The JavaScript function openzeppelin-test-helpers.shouldFail.reverting is used in testing smart contracts to ensure that a transaction or function call reverts or throws an exception. This function is part of the OpenZeppelin Test Helpers library and is commonly used in combination with testing frameworks like Mocha or Truffle. It allows developers to define and assert that a particular action should fail, providing a helpful tool for robustly testing error handling in smart contracts.
JavaScript shouldFail.reverting - 30 examples found. These are the top rated real world JavaScript examples of openzeppelin-test-helpers.shouldFail.reverting extracted from open source projects. You can rate examples to help us improve the quality of examples.