Skip to content

Commit

Permalink
Test new error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
aredridel committed Jul 29, 2015
1 parent adca7a6 commit 3063534
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/confit-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,13 @@ test('confit', function (t) {
var basedir = path.join(__dirname, 'fixtures', 'malformed');
confit(basedir).create(function (err, config) {
t.ok(err);
t.notOk(config)
t.matches(err.message, /loading jsonic file.*fixtures/);
t.matches(err.cause().message, /pair rule failed at: \d/);
t.matches(err.cause(), {
line: 1,
column: 3
});
t.notOk(config);
t.end();
});
});
Expand Down

0 comments on commit 3063534

Please sign in to comment.