A Karma plugin. Adapter for the Nodeunit testing framework.
npm install karma-nodeunitCurrently supports Karma 0.10.x


npm install karma-nodeunit or add it to your package.json.karma.conf.js:``js
frameworks = ['nodeunit'];
files = [
'lib/*.js' // files to test
'test/*.js' // test files
];
browsers = ['Chrome'];
`
3. Write your nodeunit tests:
`js``
nodeunit.run({
testSomething: function(test) {
test.expect(1);
test.ok(true, "this assertion should pass");
test.done();
},
'test something else': function(test) {
test.ok(false, "this assertion should fail");
test.done();
}
});