File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
"description" : " A through stream which converts markup in text form to JSONML" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "test" : " tape test/test.js && test/cli.sh"
7
+ "test" : " covert test/test.js && test/cli.sh"
8
8
},
9
9
"bin" : {
10
10
"jsonmlify" : " bin/cli.js"
29
29
"dependencies" : {
30
30
"htmlparser2" : " ^3.7.3" ,
31
31
"lodash.isempty" : " ^2.4.1" ,
32
- "nomnom" : " ^1.8.0" ,
32
+ "nomnom" : " ^1.8.0"
33
+ },
34
+ "devDependencies" : {
35
+ "covert" : " ^0.4.0" ,
33
36
"tape" : " ^2.13.4"
34
37
}
35
38
}
Original file line number Diff line number Diff line change @@ -6,11 +6,8 @@ function verify(testDir, t) {
6
6
fs . createReadStream ( __dirname + '/' + testDir + '/markup.html' )
7
7
. pipe ( jsonmlify ( ) )
8
8
. on ( 'data' , function ( data ) {
9
- t . deepEqual ( data , require ( '. /' + testDir + '/expected.json' ) ) ;
9
+ t . deepEqual ( data , require ( __dirname + ' /' + testDir + '/expected.json' ) ) ;
10
10
t . end ( ) ;
11
- } )
12
- . on ( 'error' , function ( err ) {
13
- t . fail ( err ) ;
14
11
} ) ;
15
12
}
16
13
You can’t perform that action at this time.
0 commit comments