Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAlec committed Aug 14, 2024
1 parent f162d4b commit 0ba3f3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wallet/components/WalletDropdownFundLink.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { version } from '../../version';
import type { WindowSizes } from '../types';
import { WalletDropdownFundLink } from './WalletDropdownFundLink';

const FUNDING_URL = `http://keys.coinbase.com/funding?dappName=&dappUrl=http://localhost:3000/&onchainkit=${version}`;
const FUNDING_URL = `http://keys.coinbase.com/fund?dappName=&dappUrl=http://localhost:3000/&onchainkit=${version}`;

describe('WalletDropdownFundLink', () => {
it('renders correctly with default props', () => {
Expand Down Expand Up @@ -51,7 +51,7 @@ describe('WalletDropdownFundLink', () => {

// Check if window.open was called with the correct arguments
expect(mockOpen).toHaveBeenCalledWith(
expect.stringContaining('http://keys.coinbase.com/funding'),
expect.stringContaining('http://keys.coinbase.com/fund'),
'Coinbase Fund Wallet',
expect.stringContaining(
'width=297,height=371,resizable,scrollbars=yes,status=1,left=364,top=199',
Expand Down Expand Up @@ -104,7 +104,7 @@ describe('WalletDropdownFundLink', () => {
const expectedLeft = Math.round((screenWidth - expectedWidth) / 2);
const expectedTop = Math.round((screenHeight - adjustedHeight) / 2);
expect(mockOpen).toHaveBeenCalledWith(
expect.stringContaining('http://keys.coinbase.com/funding'),
expect.stringContaining('http://keys.coinbase.com/fund'),
'Coinbase Fund Wallet',
expect.stringContaining(
`width=${expectedWidth},height=${adjustedHeight},resizable,scrollbars=yes,status=1,left=${expectedLeft},top=${expectedTop}`,
Expand Down

0 comments on commit 0ba3f3c

Please sign in to comment.