http://geekswithblogs.net/willemf/archive/2005/10/30/58561.aspx
import validate from 'validate-id-za';
const idNumber = '8001015009087';
validate(idNumber);
- NodeJS 6+ (https://nodejs.org/en/)
- yarn (https://yarnpkg.com/) -
npm install -g yarn
- Framework - Mocha
- Assertion Library - Chai (using expect)
- Spies, Stubs, Mocks, etc - Sinon
- Linting - ESLint
Command | Description |
---|---|
yarn test |
run linter + unit tests |
yarn test:lint |
run linter |
yarn test:runner |
run unit tests |
yarn test:watch |
run unit tests + watch for changes |