Commit 7a7803d8 authored by coolhill's avatar coolhill

added tests for CanonicalTransactionChain getters

parent fe0ee939
......@@ -679,6 +679,16 @@ describe('CanonicalTransactionChain', () => {
}
)
await res.wait()
expect(await CanonicalTransactionChain.getLastTimestamp()).to.equal(
timestamp
)
expect(await CanonicalTransactionChain.getLastBlockNumber()).to.equal(
blockNumber
)
expect(
await CanonicalTransactionChain.getNumPendingQueueElements()
).to.equal(0)
})
it(`should return ${size}`, async () => {
......@@ -686,7 +696,17 @@ describe('CanonicalTransactionChain', () => {
size
)
})
it('should return zero after queue is emptied', async () => {
expect(await CanonicalTransactionChain.getNextQueueIndex()).to.equal(
0
)
})
})
}
it('should return zero', async () => {
expect(await CanonicalTransactionChain.getTotalBatches()).to.equal(0)
})
})
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment