test: update status tests
This commit is contained in:
parent
29faace44a
commit
f87bdea8fb
@ -31,13 +31,9 @@ describe('Status', function() {
|
|||||||
var node = {
|
var node = {
|
||||||
services: {
|
services: {
|
||||||
bitcoind: {
|
bitcoind: {
|
||||||
getInfo: sinon.stub().returns(info),
|
getInfo: sinon.stub().callsArgWith(0, null, info),
|
||||||
getBestBlockHash: sinon.stub().returns(outSetInfo.bestblock)
|
getBestBlockHash: sinon.stub().callsArgWith(0, null, outSetInfo.bestblock),
|
||||||
},
|
tiphash: outSetInfo.bestblock
|
||||||
db: {
|
|
||||||
tip: {
|
|
||||||
hash: outSetInfo.bestblock
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -118,15 +114,10 @@ describe('Status', function() {
|
|||||||
it('should have correct data', function(done) {
|
it('should have correct data', function(done) {
|
||||||
var node = {
|
var node = {
|
||||||
services: {
|
services: {
|
||||||
db: {
|
|
||||||
tip: {
|
|
||||||
__height: 500000
|
|
||||||
}
|
|
||||||
},
|
|
||||||
bitcoind: {
|
bitcoind: {
|
||||||
height: 500000,
|
height: 500000,
|
||||||
isSynced: sinon.stub().returns(true),
|
isSynced: sinon.stub().callsArgWith(0, null, true),
|
||||||
syncPercentage: sinon.stub().returns(99.99)
|
syncPercentage: sinon.stub().callsArgWith(0, null, 99.99)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user