Test that invalid file name is indicated

This commit is contained in:
Marcin Floryan 2013-04-29 21:36:26 +01:00
parent 0135d95a06
commit ada15db9e3

View file

@ -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/);
}
}
}