This repository contains the mocha test files for web3 API.
- NodeJS > 8
- Bignumber.js library
- Mocha and Chai
- Make sure you have at least 4 accounts.
- Put the password of the miner in the
pw
field inwallet_test.js
. - Set the aion-web3 location in
wallet_test.js
.
- Running a single mocha test:
In a terminal navigate to the
test
folder and run the test using
mocha testName_test.js
- Running all the mocha tests:
In a terminal navigate to the
test
folder and run the following command:
mocha --recursive