From b71df4331df3e6398dc05e04a75abc21d17bf5e0 Mon Sep 17 00:00:00 2001 From: Shane Jonas Date: Mon, 15 Jul 2024 10:40:19 -0400 Subject: [PATCH] fix: tests using getInternalAccounts still --- .../lib/multichain-api/scope/authorization.test.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/scripts/lib/multichain-api/scope/authorization.test.ts b/app/scripts/lib/multichain-api/scope/authorization.test.ts index 45898c5785fb..fb5c7d56693c 100644 --- a/app/scripts/lib/multichain-api/scope/authorization.test.ts +++ b/app/scripts/lib/multichain-api/scope/authorization.test.ts @@ -31,7 +31,6 @@ describe('Scope Authorization', () => { describe('processScopes', () => { const findNetworkClientIdByChainId = jest.fn(); - const getInternalAccounts = jest.fn(); it('validates the scopes', () => { try { @@ -44,7 +43,6 @@ describe('Scope Authorization', () => { }, { findNetworkClientIdByChainId, - getInternalAccounts, }, ); } catch (err) { @@ -75,7 +73,6 @@ describe('Scope Authorization', () => { {}, { findNetworkClientIdByChainId, - getInternalAccounts, }, ); expect(MockTransform.flattenMergeScopes).toHaveBeenCalledWith({ @@ -105,21 +102,18 @@ describe('Scope Authorization', () => { {}, { findNetworkClientIdByChainId, - getInternalAccounts, }, ); expect(MockAssert.assertScopesSupported).toHaveBeenCalledWith( { 'eip155:1': validScopeObject, transformed: true }, { findNetworkClientIdByChainId, - getInternalAccounts, }, ); expect(MockAssert.assertScopesSupported).toHaveBeenCalledWith( { 'eip155:5': validScopeObject, transformed: true }, { findNetworkClientIdByChainId, - getInternalAccounts, }, ); }); @@ -143,7 +137,6 @@ describe('Scope Authorization', () => { {}, { findNetworkClientIdByChainId, - getInternalAccounts, }, ); }).toThrow(new Error('unsupported scopes')); @@ -169,7 +162,6 @@ describe('Scope Authorization', () => { {}, { findNetworkClientIdByChainId, - getInternalAccounts, }, ), ).toStrictEqual({