Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jan 14, 2025
1 parent c4f17e3 commit acdb36a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ed25519.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ describe('ed25519', () => {
throws(() => ed.getPublicKey(invalidPriv));
});
should('not accept >32byte private keys in Uint8Array format', () => {
const invalidPriv = new Uint8Array(33);
throws(() => ed.getPublicKey(invalidPriv), new Error('Uint8Array of valid length expected'));
const invalidPriv = new Uint8Array(33).fill(1);
throws(() => ed.getPublicKey(invalidPriv));
});
should('verify recent signature', () => {
fc.assert(
Expand Down

0 comments on commit acdb36a

Please sign in to comment.