Skip to content

Commit

Permalink
fixing tests in other node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Jan 22, 2016
1 parent 78820ac commit 2c80d9d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ var tests = {
return path;
},
'and check it': function(path) {
assert.throws(checker.parseJson(path));
var json = checker.parseJson(path);
assert.ok(json instanceof Error);
}
},
'should parse json with errors (File not found)': {
Expand All @@ -362,7 +363,8 @@ var tests = {
return path;
},
'and check it': function(path) {
assert.throws(checker.parseJson(path));
var json = checker.parseJson(path);
assert.ok(json instanceof Error);
}
},
};
Expand Down

0 comments on commit 2c80d9d

Please sign in to comment.