From 67cefb0a0f76b71dfb56837c5a4a7a94c3a13b64 Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Wed, 26 Oct 2022 18:08:04 -0300 Subject: [PATCH] fix tests --- test/MerkleTree.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/MerkleTree.test.js b/test/MerkleTree.test.js index a8f0a0f..090a5a6 100644 --- a/test/MerkleTree.test.js +++ b/test/MerkleTree.test.js @@ -1176,13 +1176,14 @@ test('complete option with incompatible options', t => { const leaves = ['a', 'b', 'c'].map(v => keccak256(Buffer.from(v))) t.throws( () => new MerkleTree(leaves, keccak256, { complete: true, isBitcoinTree: true }), - { message: 'option "complete" is incompatible with "isBitcoinTree"' }, + /option "complete" is incompatible with "isBitcoinTree"/, ) t.throws( () => new MerkleTree(leaves, keccak256, { complete: true, duplicateOdd: true }), - { message: 'option "complete" is incompatible with "duplicateOdd"' }, + /option "complete" is incompatible with "duplicateOdd"/, ) }) + test('bad multiproof', t => { t.plan(1); const leaves = 'abcdefghi'.split('').map(keccak256).sort(Buffer.compare);