Test that invalid file name is indicated
This commit is contained in:
parent
0135d95a06
commit
ada15db9e3
1 changed files with 2 additions and 1 deletions
|
@ -42,8 +42,9 @@ vows.describe('nconf/stores/file').addBatch({
|
||||||
topic: function () {
|
topic: function () {
|
||||||
this.store.load(this.callback.bind(null, null));
|
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.isTrue(!!err);
|
||||||
|
assert.match(err, /malformed\.json/);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue