This is an assessment made for Sifchain hiring process
You should have the latest Node.js installed. Then
npm install
To run tests, run
npm test
To run tests with code coverage enabled, run
npm run test:coverage
By default, mochawesome reporter is enabled which means that html report is generated. Search for mochawesome.html file under
mochawesome-report/
Test output is also logged to intermediate JSON file mochawesome.json (under the same directory)
When code coverage is enabled (with nyc package), it is presented under
coverage/lcov-report
directory, where index.html is located. The report covers:
- statements
- branches
- functions
- lines
Separate test implementation comments are put in each of the spec files:
test/black-box.spec.js
test/white-box.spec.js

