Skip to content

Commit

Permalink
fix: linters
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-defi committed Dec 15, 2024
1 parent cd37bf4 commit 93df3be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/wallet/components/Wallet.test.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { render, screen } from '@testing-library/react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
import { useOutsideClick } from '../../ui/react/internal/hooks/useOutsideClick';
import { ConnectWallet } from './ConnectWallet';
import { Wallet } from './Wallet';
import { WalletBasic } from './WalletBasic';
import { WalletDropdown } from './WalletDropdown';
import { type WalletProviderReact, useWalletContext } from './WalletProvider';
import { useOutsideClick } from '../../ui/react/internal/hooks/useOutsideClick';

vi.mock('./WalletProvider', () => ({
useWalletContext: vi.fn(),
Expand Down Expand Up @@ -109,7 +109,6 @@ describe('Wallet Component', () => {
handleOutsideClick: mockOutsideClickCallback,
});


render(
<Wallet>
<WalletBasic>
Expand Down
1 change: 0 additions & 1 deletion src/wallet/components/WalletProvider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { act, render, renderHook } from '@testing-library/react';
import { describe, expect, it, vi } from 'vitest';
import { WagmiProvider } from 'wagmi';
import { WalletProvider, useWalletContext } from './WalletProvider';
import { useState } from 'react';

vi.mock('wagmi', () => ({
useAccount: vi.fn().mockReturnValue({ address: null }),
Expand Down

0 comments on commit 93df3be

Please sign in to comment.