Skip to content

Commit 68f9be4

Browse files
committed
Fix unit tests
1 parent ef5293a commit 68f9be4

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

app/scripts/metamask-controller.test.js

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -237,20 +237,6 @@ const TEST_ADDRESS_3 = '0xeb9e64b93097bc15f01f13eae97015c57ab64823';
237237
const TEST_SEED_ALT =
238238
'setup olympic issue mobile velvet surge alcohol burger horse view reopen gentle';
239239
const TEST_ADDRESS_ALT = '0xc42edfcc21ed14dda456aa0756c153f7985d8813';
240-
const TEST_INTERNAL_ACCOUNT = {
241-
id: '2d47e693-26c2-47cb-b374-6151199bbe3f',
242-
address: '0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc',
243-
metadata: {
244-
name: 'Account 1',
245-
keyring: {
246-
type: 'HD Key Tree',
247-
},
248-
lastSelected: 0,
249-
},
250-
options: {},
251-
methods: ETH_EOA_METHODS,
252-
type: EthAccountType.Eoa,
253-
};
254240

255241
const ALT_MAINNET_RPC_URL = 'http://localhost:8545';
256242
const POLYGON_RPC_URL = 'https://polygon.llamarpc.com';
@@ -3584,36 +3570,6 @@ describe('MetaMaskController', () => {
35843570
});
35853571
});
35863572

3587-
describe('incoming transactions', () => {
3588-
it('starts incoming transaction polling if useExternalServices is enabled for that chainId', async () => {
3589-
expect(
3590-
TransactionController.prototype.startIncomingTransactionPolling,
3591-
).not.toHaveBeenCalled();
3592-
3593-
await simulatePreferencesChange({
3594-
useExternalServices: true,
3595-
});
3596-
3597-
expect(
3598-
TransactionController.prototype.startIncomingTransactionPolling,
3599-
).toHaveBeenCalledTimes(1);
3600-
});
3601-
3602-
it('stops incoming transaction polling if useExternalServices is disabled for that chainId', async () => {
3603-
expect(
3604-
TransactionController.prototype.stopIncomingTransactionPolling,
3605-
).not.toHaveBeenCalled();
3606-
3607-
await simulatePreferencesChange({
3608-
useExternalServices: false,
3609-
});
3610-
3611-
expect(
3612-
TransactionController.prototype.stopIncomingTransactionPolling,
3613-
).toHaveBeenCalledTimes(1);
3614-
});
3615-
});
3616-
36173573
describe('MultichainRatesController start/stop', () => {
36183574
const mockEvmAccount = createMockInternalAccount();
36193575
const mockNonEvmAccount = {

0 commit comments

Comments
 (0)