Skip to content

Commit

Permalink
fixes for travis
Browse files Browse the repository at this point in the history
fix test expectation for slightly different error message between
0.10.x and 4.x+ node versions

remove the jshint devDependencies which brings up a bunch of issues
covered here: spalger/gulp-jshint#133
  • Loading branch information
rodney committed Jan 7, 2016
1 parent 1c64a5c commit c2620cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"gulp-jscs": "^3.0.2",
"gulp-jshint": "^2.0.0",
"gulp-mocha": "^2.2.0",
"jshint": "^2.9.1-rc2",
"jshint": "^2.x",
"lodash": "^3.10.1",
"mocha": "^2.3.4",
"tmp": "0.0.28"
Expand Down
4 changes: 2 additions & 2 deletions test/jsoner.append.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ describe('jsoner', function() {
it('fails to append to a file in an inexistent file', function() {
expect(function() {
jsoner.appendFileSync(tmpFilename, {});
}).to.throw('ENOENT: no such file or directory');
}).to.throw(/ENOENT. no such file or directory/);
});

it('fails to append to a file in an inexistent path', function() {
expect(function() {
jsoner.appendFileSync('/no/mans/land/foo.juttle', {});
}).to.throw('ENOENT: no such file or directory');
}).to.throw(/ENOENT. no such file or directory/);
});

it('fails to append an object to an incomplete JSON array', function() {
Expand Down

0 comments on commit c2620cb

Please sign in to comment.