Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
owencraston committed Sep 13, 2024
1 parent 5831c14 commit f6b7013
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions app/core/SnapKeyring/SnapKeyring.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { ControllerMessenger } from '@metamask/base-controller';
import { EthAccountType, InternalAccount, KeyringEvent } from '@metamask/keyring-api';
import {
EthAccountType,
InternalAccount,
KeyringEvent,
} from '@metamask/keyring-api';
import { snapKeyringBuilder } from './SnapKeyring';
import {
SnapKeyringBuilderAllowActions,
Expand Down Expand Up @@ -96,7 +100,8 @@ const createControllerMessenger = ({
return messenger;
};

const createSnapKeyringBuilder = () => snapKeyringBuilder(
const createSnapKeyringBuilder = () =>
snapKeyringBuilder(
createControllerMessenger(),
mockSnapController,
mockPersisKeyringHelper,
Expand Down Expand Up @@ -154,8 +159,8 @@ describe('Snap Keyring Methods', () => {
});
describe('removeAccount', () => {
afterEach(() => {
jest.resetAllMocks();
});
jest.resetAllMocks();
});
it('handles account removal', async () => {
const builder = createSnapKeyringBuilder();
await builder().handleKeyringSnapMessage(mockSnapId, {
Expand Down

0 comments on commit f6b7013

Please sign in to comment.