Test that invalid file name is indicated

master
Marcin Floryan 2013-04-29 21:36:26 +01:00
parent 0135d95a06
commit ada15db9e3
1 changed files with 2 additions and 1 deletions

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