Tests are included and can be run using truffle.
- Node.js v7.6.0+
- truffle v3.2.2+
- testrpc v3.0.5+
To run the test, execute the following commands from the project's /solidity folder -
Please run yarn first
Then run these commands:
npm run testrpctruffle test test/ENJToken.js
As the dates of the crowdfund are hardcoded in the contract and we are increasing the blockchain time artificially, you will need to reset testrpc before running the second round of tests:
npm run testrpctruffle test test/ENJCrowdfund.js