Skip to content

Commit

Permalink
fiox
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcramer committed Nov 21, 2024
1 parent a5441d0 commit 4847d57
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/wallet/components/ConnectWallet.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -445,20 +445,16 @@ describe('ConnectWallet', () => {

render(<ConnectWallet text="Connect" onConnect={onConnectMock} />);

// Click connect button
const button = screen.getByTestId('ockConnectButton');
fireEvent.click(button);

// Trigger the success callback from the connect function
connectMock.mock.calls[0][1].onSuccess();

// Update account status to connected
vi.mocked(useAccount).mockReturnValue({
address: '0x123',
status: 'connected',
});

// Verify onConnect was called
expect(onConnectMock).toHaveBeenCalledTimes(1);
});
});
Expand Down
1 change: 0 additions & 1 deletion src/wallet/components/WalletModal.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ describe('WalletModal', () => {
config: {
appearance: {
logo: 'test-logo.png',
// No appName provided
},
wallet: {},
},
Expand Down

0 comments on commit 4847d57

Please sign in to comment.