Im using Truffle to test my smart contracts written in Solidity and I would like to mark test as passed if function call/execution fails.
Example:
await instance.cancelOrder({from: accounts[1]});
Normaly this would pass if function executes properly. This one requires certain variable to be true which it isn't and should fail. How do I do something like that?