From 2ce8aea8fcf1f29065d16637c4ebba81f3403921 Mon Sep 17 00:00:00 2001 From: midknight41 Date: Thu, 3 Oct 2013 15:53:02 +0100 Subject: [PATCH] made bom tests more meaningful --- test/stores/file-store-test.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/stores/file-store-test.js b/test/stores/file-store-test.js index 57fac59..6af69ad 100644 --- a/test/stores/file-store-test.js +++ b/test/stores/file-store-test.js @@ -60,15 +60,16 @@ vows.describe('nconf/stores/file').addBatch({ }, "should load the data correctly": function (err, data) { assert.isNull(err); + assert.deepEqual(data, this.store.store); } }, "the loadSync() method": { topic: function () { - this.store.loadSync(); - return null; + var data = this.store.loadSync(); + return data; }, "should load the data correctly": function (result) { - assert.isNull(result); + assert.deepEqual(result, this.store.store); } } },