Skip to content

Commit ddb85fe

Browse files
committed
fix core tests
1 parent 664cf04 commit ddb85fe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ describe('core error conditions', () => {
5050
it('zero leaves', () => {
5151
assert.throws(
5252
() => makeMerkleTree([]),
53-
'Error: Expected non-zero number of leaves',
53+
/^Error: Expected non-zero number of leaves$/,
5454
);
5555
});
5656

5757
it('multiproof duplicate index', () => {
58-
const tree = makeMerkleTree(new Array(4).fill(zero));
58+
const tree = makeMerkleTree(new Array(2).fill(zero));
5959
assert.throws(
6060
() => getMultiProof(tree, [1, 1]),
61-
'Error: Cannot prove duplicated index',
61+
/^Error: Cannot prove duplicated index$/,
6262
);
6363
});
6464

@@ -69,7 +69,7 @@ describe('core error conditions', () => {
6969

7070
assert.throws(
7171
() => renderMerkleTree([]),
72-
'Error: Expected non-zero number of nodes',
72+
/^Error: Expected non-zero number of nodes$/,
7373
);
7474
});
7575
});

0 commit comments

Comments
 (0)