made bom tests more meaningful

master
midknight41 2013-10-03 15:53:02 +01:00
parent f7733c1719
commit 2ce8aea8fc
1 changed files with 4 additions and 3 deletions

View File

@ -60,15 +60,16 @@ vows.describe('nconf/stores/file').addBatch({
}, },
"should load the data correctly": function (err, data) { "should load the data correctly": function (err, data) {
assert.isNull(err); assert.isNull(err);
assert.deepEqual(data, this.store.store);
} }
}, },
"the loadSync() method": { "the loadSync() method": {
topic: function () { topic: function () {
this.store.loadSync(); var data = this.store.loadSync();
return null; return data;
}, },
"should load the data correctly": function (result) { "should load the data correctly": function (result) {
assert.isNull(result); assert.deepEqual(result, this.store.store);
} }
} }
}, },