An empty NodeJS project template.
Perfect for quick projects, coding workshops or as the basis for something bigger.
- Mocha for tests
- Chai for expressive assertions
- An
empty-canvas.js
file with a function returning a String - A passing tests which asserts the String returned.
$ git clone git@github.com:pameck/nodejs-empty-canvas.git
$ cd nodejs-empty-canvas
$ npm install
$ npm test
Empty Canvas
✓ should say Hello
1 passing (7ms)
npm install
npm test
Or, to run the tests once and then automatically re-run them when the code changes:
npm run test:watch