From ada15db9e3fd6ca7eaac7b1b1ea271045dbb0563 Mon Sep 17 00:00:00 2001 From: Marcin Floryan Date: Mon, 29 Apr 2013 21:36:26 +0100 Subject: [PATCH] Test that invalid file name is indicated --- test/stores/file-store-test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/stores/file-store-test.js b/test/stores/file-store-test.js index 75ec280..bf43d7f 100644 --- a/test/stores/file-store-test.js +++ b/test/stores/file-store-test.js @@ -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/); } } }