made bom tests more meaningful

This commit is contained in:
midknight41 2013-10-03 15:58:13 +01:00
parent 2ce8aea8fc
commit 6641ed234a

View file

@ -85,15 +85,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);
} }
} }
} }