It adds the karma test framework. It's very good and easy for headless js testing.
I use _PhantomJS to test in the console and use TDD and continuous testing to get instant feedback.
Installation
Install dependencies with npm install Install karma CLI with npm install -g karma-cli
What does this PR do?
It adds the karma test framework. It's very good and easy for headless js testing. I use _PhantomJS to test in the console and use TDD and continuous testing to get instant feedback.
Installation
Install dependencies with
npm install
Install karma CLI withnpm install -g karma-cli
Run tests with
karma start
Tests
Add first Tests for
traffic.js