Skip to content

Commit 70b3734

Browse files
committed
Code coverage reporting
1 parent 16b2acf commit 70b3734

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A through stream which converts markup in text form to JSONML",
55
"main": "index.js",
66
"scripts": {
7-
"test": "tape test/test.js && test/cli.sh"
7+
"test": "covert test/test.js && test/cli.sh"
88
},
99
"bin": {
1010
"jsonmlify": "bin/cli.js"
@@ -29,7 +29,10 @@
2929
"dependencies": {
3030
"htmlparser2": "^3.7.3",
3131
"lodash.isempty": "^2.4.1",
32-
"nomnom": "^1.8.0",
32+
"nomnom": "^1.8.0"
33+
},
34+
"devDependencies": {
35+
"covert": "^0.4.0",
3336
"tape": "^2.13.4"
3437
}
3538
}

test/test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ function verify(testDir, t) {
66
fs.createReadStream(__dirname + '/' + testDir + '/markup.html')
77
.pipe(jsonmlify())
88
.on('data', function(data) {
9-
t.deepEqual(data, require('./' + testDir + '/expected.json'));
9+
t.deepEqual(data, require(__dirname + '/' + testDir + '/expected.json'));
1010
t.end();
11-
})
12-
.on('error', function(err) {
13-
t.fail(err);
1411
});
1512
}
1613

0 commit comments

Comments
 (0)