Skip to content

Commit

Permalink
Test that invalid file name is indicated
Browse files Browse the repository at this point in the history
  • Loading branch information
mfloryan committed Apr 29, 2013
1 parent 0135d95 commit ada15db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/stores/file-store-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ vows.describe('nconf/stores/file').addBatch({
topic: function () {
this.store.load(this.callback.bind(null, null));
},
"should respond with an error": function (_, err) {
"should respond with an error and indicate file name": function (_, err) {
assert.isTrue(!!err);
assert.match(err, /malformed\.json/);
}
}
}
Expand Down

0 comments on commit ada15db

Please sign in to comment.