Skip to content

Commit e91bbe2

Browse files
committed
refactor: First batch of lint fixes
1 parent 36691cc commit e91bbe2

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/wallet/src/Wallet.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
DistributionType,
55
EnvironmentType,
66
} from '@metamask/remote-feature-flag-controller';
7-
import { cleanAll, enableNetConnect } from 'nock';
7+
import { enableNetConnect } from 'nock';
88

99
import { importSecretRecoveryPhrase, sendTransaction } from './utilities';
1010
import { Wallet } from './Wallet';
@@ -51,7 +51,6 @@ describe('Wallet', () => {
5151

5252
afterEach(async () => {
5353
await wallet?.destroy();
54-
cleanAll();
5554
enableNetConnect();
5655
jest.useRealTimers();
5756
});
@@ -82,6 +81,7 @@ describe('Wallet', () => {
8281
{ networkClientId: 'sepolia' },
8382
);
8483

84+
// Advance timers by an arbitrary value to trigger downstream timer logic.
8585
const hash = await jest.advanceTimersByTimeAsync(60_000).then(() => result);
8686

8787
expect(hash).toStrictEqual(expect.any(String));
@@ -96,7 +96,7 @@ describe('Wallet', () => {
9696
}),
9797
}),
9898
);
99-
}, 30_000);
99+
}, 10_000);
100100

101101
it('exposes state', async () => {
102102
wallet = await setupWallet();

packages/wallet/src/initialization/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ export function bindMessengerAction<
4646
) => ExtractActionResponse<MessengerActions<Msgr>, ActionType>;
4747
}
4848

49-
// Method syntax provides bivariant parameter checking, which is needed to
50-
// collect heterogeneous InitializationConfiguration values in a single array.
5149
export type InitializationConfiguration<Instance, InstanceMessenger> = {
5250
name: string;
51+
// This is a method as opposed to function property in order to collect
52+
// heterogeneous InitializationConfiguration values in a single array.
5353
init(args: InitFunctionArguments<Instance, InstanceMessenger>): {
5454
instance: Instance;
5555
};

0 commit comments

Comments
 (0)