Skip to content

Commit

Permalink
test: add a test for longer hex strings
Browse files Browse the repository at this point in the history
  • Loading branch information
seemk committed Aug 22, 2022
1 parent 95966fa commit 13471d7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ describe('hexToBase64', () => {
assert.strictEqual(hexToBase64(id1), 'fetzngLkTvI=');
assert.strictEqual(hexToBase64(id2), 'EqvANNVn6J/ybmCMjPQsgA==');
assert.strictEqual(hexToBase64(id3), 'EqvANNVn6J/ybmCMjPQsgA==');
// Don't use the preallocated path
assert.strictEqual(hexToBase64(id2.repeat(2)), 'EqvANNVn6J/ybmCMjPQsgBKrwDTVZ+if8m5gjIz0LIA=');
});
});

0 comments on commit 13471d7

Please sign in to comment.