Test for the contract
- npm install -g truffle
- npm install -g ethereumjs-testrpc
- npm install or yarn install
- testrpc (keep this run on another terminal)
- truffle compile
- truffle test
Reference: https://medium.com/@angellopozo/testing-solidity-with-truffle-and-async-await-396e81c54f93