Skip to content

Commit

Permalink
fix: tests using getInternalAccounts still
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejonas committed Jul 15, 2024
1 parent e434515 commit b71df43
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/scripts/lib/multichain-api/scope/authorization.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ describe('Scope Authorization', () => {

describe('processScopes', () => {
const findNetworkClientIdByChainId = jest.fn();
const getInternalAccounts = jest.fn();

it('validates the scopes', () => {
try {
Expand All @@ -44,7 +43,6 @@ describe('Scope Authorization', () => {
},
{
findNetworkClientIdByChainId,
getInternalAccounts,
},
);
} catch (err) {
Expand Down Expand Up @@ -75,7 +73,6 @@ describe('Scope Authorization', () => {
{},
{
findNetworkClientIdByChainId,
getInternalAccounts,
},
);
expect(MockTransform.flattenMergeScopes).toHaveBeenCalledWith({
Expand Down Expand Up @@ -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,
},
);
});
Expand All @@ -143,7 +137,6 @@ describe('Scope Authorization', () => {
{},
{
findNetworkClientIdByChainId,
getInternalAccounts,
},
);
}).toThrow(new Error('unsupported scopes'));
Expand All @@ -169,7 +162,6 @@ describe('Scope Authorization', () => {
{},
{
findNetworkClientIdByChainId,
getInternalAccounts,
},
),
).toStrictEqual({
Expand Down

0 comments on commit b71df43

Please sign in to comment.