[test] COVERAGE

This commit is contained in:
yawnt 2013-08-03 16:44:23 +02:00
parent 34f16e7464
commit 004a46c09d
2 changed files with 18 additions and 5 deletions

View File

@ -7,15 +7,20 @@
"main" : "index.js",
"dependencies" : {
"eventemitter2": "*"
"eventemitter2" : "*"
},
"devDependencies": {
"mocha" : "*",
"expect.js": "*",
"dox" : "*"
"mocha" : "*",
"expect.js" : "*",
"dox" : "*",
"coveralls" : "*",
"mocha-lcov-reporter": "*",
"blanket" : "*"
},
"scripts" : {
"test" : "mocha -t 20000 -R spec -r expect test/*-test.js"
"blanket" : { "pattern": "caronte/lib" },
"test" : "mocha -R spec test/*-test.js && npm run-script test-cov",
"test-cov" : "mocha --require blanket -R html-cov > cov/coverage.html"
},
"license" : "MIT"

8
test/truth-test.js Normal file
View File

@ -0,0 +1,8 @@
var caronte = require('../'),
expect = require('expect.js');
describe('the truthness', function() {
it('should be true', function() {
expect(true).to.be(true);
})
});