add mempoolADdressIndex test

This commit is contained in:
Matias Alejo Garcia 2016-02-08 13:40:27 -05:00
parent c1d3f351f2
commit c65c2bad20

View File

@ -1977,6 +1977,7 @@ describe('Address Service', function() {
am.mempoolIndex.batch = function(operations, callback) {
callback.should.be.a('function');
Object.keys(am.mempoolSpentIndex).length.should.equal(14);
Object.keys(am.mempoolAddressIndex).length.should.equal(5);
for (var i = 0; i < operations.length; i++) {
operations[i].type.should.equal('put');
}