A collection of 2 posts tagged
testing
Asserting reverts when testing Solidity smart contracts with Truffle
Reverting is a big part of Solidity smart contracts on Ethereum. To make sure reverting functionality works well, it should be thoroughly tested.
Checking events when testing Solidity smart contracts with Truffle
Checking emitted events is very powerful when testing smart contracts. Learn how to use the truffle-assertions library to make assertions about events.