Skip to content

Commit

Permalink
more precise test
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Feb 29, 2024
1 parent 57aca96 commit cc0810b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simple.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ testProp('dump and load', [tree], (t, [tree, options]) => {
const recoveredTree = SimpleMerkleTree.load(dump, options.nodeHash);
recoveredTree.validate();

t.is(dump.hash === undefined, options.nodeHash === undefined);
t.is(dump.hash, options.nodeHash ? 'custom' : undefined);
t.is(tree.root, recoveredTree.root);
t.is(tree.render(), recoveredTree.render());
t.deepEqual(tree.entries(), recoveredTree.entries());
Expand Down

0 comments on commit cc0810b

Please sign in to comment.