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