Skip to content

Commit

Permalink
Fix test mock data
Browse files Browse the repository at this point in the history
  • Loading branch information
jiexi committed Jan 27, 2025
1 parent 980a980 commit 7060911
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/StreamProvider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ describe('StreamProvider', () => {
chainId: '0x0',
isUnlocked: true,
networkVersion: '0',
isConnected: true,
};
});

Expand All @@ -402,7 +403,7 @@ describe('StreamProvider', () => {
mockStream.notify(mockStreamName, {
jsonrpc: '2.0',
method: 'metamask_chainChanged',
params: { chainId: '0x1', networkVersion: '0x1' },
params: { chainId: '0x1', networkVersion: '0' },
});
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ async function getInitializedProvider({
chainId = '0x0',
isUnlocked = true,
networkVersion = '0',
isConnected = true,
} = {},
onMethodCalled = [],
}: {
Expand Down Expand Up @@ -73,6 +74,7 @@ async function getInitializedProvider({
chainId,
isUnlocked,
networkVersion,
isConnected

Check failure on line 77 in src/extension-provider/createExternalExtensionProvider.test.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test / Lint

Insert `,`
},
}),
);
Expand Down

0 comments on commit 7060911

Please sign in to comment.