I wrote a lottery smart contract and gonna to test an "enter" functionality of the smart contract.
The below code is javascript test code for the "enter" function of the smart contract.
When I call "enter" function with less than 0.01 ether, how can I continue the test code? (//??? part below contract.enter(...) line) In the enter function of lottery smart contract, the execution will be restricted if the msg.value is less than 0.01 ether. How can I detect it in the test code?