Skip to content

Commit

Permalink
Fixes #166
Browse files Browse the repository at this point in the history
  • Loading branch information
jarenal committed Apr 17, 2018
1 parent 34e50e3 commit 1a1f180
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/unit/logic/transactionPool.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,14 @@ describe('logic/transactionPool - TransactionPool', () => {
expect(removeUnconfirmedTransactionSpy.callCount).to.be.equal(unconfirmedIds.length);
expect(removeUnconfirmedTransactionSpy.firstCall.args[0]).to.be.equal(unconfirmedIds[0]);
});

it('should return an empty array if transactions are empty', async () => {
instance['unconfirmed'].list.restore();
const unconfirmedStub = sandbox.stub(instance['unconfirmed'], 'list').returns([undefined, undefined]);
const retVal = await instance.undoUnconfirmedList(txModuleStub);
expect(retVal).to.be.equalTo([]);
expect(unconfirmedStub.calledOnce).to.be.true;
});
});

describe('reindexAllQueues', () => {
Expand Down

0 comments on commit 1a1f180

Please sign in to comment.