Skip to content

Commit

Permalink
Test to check if nodeBags is set
Browse files Browse the repository at this point in the history
  • Loading branch information
SoujanyaPonnapalli committed Apr 21, 2019
1 parent 998fe58 commit 00f1539
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,8 @@ describe('Test nodeCount', async () => {
});

describe('Test batchCOW with nodeBag on CachedMerkleTree', async () => {
const cache = new CachedMerklePatriciaTree<Buffer, Buffer>({putCanDelete: false}, 1);
const cache =
new CachedMerklePatriciaTree<Buffer, Buffer>({putCanDelete: false}, 1);
const value = Buffer.from('1234');
const updatedValue = Buffer.from('1234');
const nodesUsed = new Set<bigint>();
Expand Down Expand Up @@ -1061,5 +1062,5 @@ describe('Test batchCOW with nodeBag on CachedMerkleTree', async () => {

it('batchCOWwithNodeBag should set nodes used', async () => {
nodesUsed.size.should.not.equal(0);
})
});
});

0 comments on commit 00f1539

Please sign in to comment.