Skip to content

Commit 004a46c

Browse files
committed
[test] COVERAGE
1 parent 34f16e7 commit 004a46c

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

Diff for: package.json

+10-5
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,20 @@
77
"main" : "index.js",
88

99
"dependencies" : {
10-
"eventemitter2": "*"
10+
"eventemitter2" : "*"
1111
},
1212
"devDependencies": {
13-
"mocha" : "*",
14-
"expect.js": "*",
15-
"dox" : "*"
13+
"mocha" : "*",
14+
"expect.js" : "*",
15+
"dox" : "*",
16+
"coveralls" : "*",
17+
"mocha-lcov-reporter": "*",
18+
"blanket" : "*"
1619
},
1720
"scripts" : {
18-
"test" : "mocha -t 20000 -R spec -r expect test/*-test.js"
21+
"blanket" : { "pattern": "caronte/lib" },
22+
"test" : "mocha -R spec test/*-test.js && npm run-script test-cov",
23+
"test-cov" : "mocha --require blanket -R html-cov > cov/coverage.html"
1924
},
2025

2126
"license" : "MIT"

Diff for: test/truth-test.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var caronte = require('../'),
2+
expect = require('expect.js');
3+
4+
describe('the truthness', function() {
5+
it('should be true', function() {
6+
expect(true).to.be(true);
7+
})
8+
});

0 commit comments

Comments
 (0)