Skip to content

Commit

Permalink
refactor(tooltip): remove useless test code (#2903)
Browse files Browse the repository at this point in the history
  • Loading branch information
philibea authored Sep 14, 2023
1 parent a6bf064 commit 0b4ab6a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/ui/src/components/TagList/__tests__/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
import { describe, expect, jest, test } from '@jest/globals'
import { describe, expect, test } from '@jest/globals'
import { screen, waitFor } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import type { ReactNode } from 'react'
import { TagList } from '..'
import {
renderWithTheme,
shouldMatchEmotionSnapshot,
} from '../../../../.jest/helpers'

jest.mock('reakit/Tooltip', () => ({
Tooltip: ({ children }: { children: ReactNode }) => children,
TooltipArrow: () => null,
TooltipReference: ({ children }: { children: ReactNode }) => children,
useTooltipState: () => ({}),
}))

describe('TagList', () => {
test('renders correctly', () =>
shouldMatchEmotionSnapshot(
Expand Down

0 comments on commit 0b4ab6a

Please sign in to comment.