From 6641ed234a170eff811a39cb2c6530efbf432455 Mon Sep 17 00:00:00 2001 From: midknight41 Date: Thu, 3 Oct 2013 15:58:13 +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 6af69ad..e2f068f 100644 --- a/test/stores/file-store-test.js +++ b/test/stores/file-store-test.js @@ -85,15 +85,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); } } }