made bom tests more meaningful

master
midknight41 2013-10-03 15:58:13 +01:00
parent 2ce8aea8fc
commit 6641ed234a
1 changed files with 4 additions and 3 deletions

View File

@ -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);
}
}
}