Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
feat: Remove duplicate tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dawnseeker8 committed Jul 11, 2024
1 parent 141f013 commit b2505bb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/ledger-keyring.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ describe('LedgerKeyring', function () {
'Unlock your Ledger device and open the ETH app',
);
});

it('does not update hdk.publicKey if updateHdk is false', async function () {
// @ts-expect-error we want to bypass the publicKey property set method
keyring.hdk = { publicKey: 'ABC' };
Expand Down Expand Up @@ -374,12 +374,6 @@ describe('LedgerKeyring', function () {
.mockRejectedValue(new Error('Some error'));
await expect(keyring.unlock()).rejects.toThrow('Some error');
});

it('throws an error when the bridge getPublicKey method throws an error and it is not an error type', async function () {
keyring.setHdPath(`m/44'/60'/0'/0`);
jest.spyOn(bridge, 'getPublicKey').mockRejectedValue('Some error');
await expect(keyring.unlock()).rejects.toThrow('Unknown error');
});
});

describe('addAccounts', function () {
Expand Down

0 comments on commit b2505bb

Please sign in to comment.