Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-defi committed Jan 17, 2025
1 parent 0b11e70 commit 8c3c6d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/internal/components/MobileTray.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen, fireEvent } from '@testing-library/react';
import { describe, it, expect, vi } from 'vitest';
import { fireEvent, render, screen } from '@testing-library/react';
import { describe, expect, it, vi } from 'vitest';
import { MobileTray } from './MobileTray';

describe('MobileTray', () => {
Expand All @@ -18,7 +18,9 @@ describe('MobileTray', () => {

it('renders overlay when open', () => {
render(<MobileTray {...defaultProps} />);
expect(screen.getByRole('presentation')).toHaveClass('bg-black bg-opacity-20');
expect(screen.getByRole('presentation')).toHaveClass(
'bg-black bg-opacity-20',
);
});

it('does not render overlay when closed', () => {
Expand Down
4 changes: 2 additions & 2 deletions src/wallet/components/WalletAdvancedContent.test.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { SwapDefaultReact } from '@/swap/types';
import { useBreakpoints } from '@/ui-react/internal/hooks/useBreakpoints';
import { fireEvent, render, screen } from '@testing-library/react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
import { WalletAdvancedContent } from './WalletAdvancedContent';
import { useWalletAdvancedContext } from './WalletAdvancedProvider';
import { useWalletContext } from './WalletProvider';
import { useBreakpoints } from '@/ui-react/internal/hooks/useBreakpoints';

vi.mock('../../ui/react/internal/hooks/useBreakpoints', () => ({
useBreakpoints: vi.fn(),
}))
}));

vi.mock('../../core-react/internal/hooks/useTheme', () => ({
useTheme: vi.fn(),
Expand Down

0 comments on commit 8c3c6d3

Please sign in to comment.