Skip to content

Commit

Permalink
test(keyring-controller): Update expected error message when importin…
Browse files Browse the repository at this point in the history
…g invalid key
  • Loading branch information
legobeat committed Feb 19, 2024
1 parent 999fadb commit 39e0c9f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/keyring-controller/src/KeyringController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -985,9 +985,7 @@ describe('KeyringController', () => {
AccountImportStrategy.privateKey,
['123'],
),
).rejects.toThrow(
'Expected private key to be an Uint8Array with length 32',
);
).rejects.toThrow('Cannot import invalid private key.');

await expect(
controller.importAccountWithStrategy(
Expand Down

0 comments on commit 39e0c9f

Please sign in to comment.