Skip to content

Commit

Permalink
[@mantine/core] Tabs: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rtivital committed Feb 24, 2022
1 parent bdd6e64 commit f2f6d7e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/mantine-core/src/components/Tabs/Tabs.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { checkAccessibility, itSupportsSystemProps, itFiltersChildren } from '@mantine/tests';
import { checkAccessibility, itSupportsSystemProps } from '@mantine/tests';
import { Tabs, TabsProps } from './Tabs';

const content = [
Expand Down Expand Up @@ -50,11 +50,6 @@ describe('@mantine/core/Tabs', () => {
refType: HTMLDivElement,
});

itFiltersChildren(Tabs, defaultProps, '.mantine-Tabs-tabControl', [
<Tabs.Tab>test-label-1</Tabs.Tab>,
<Tabs.Tab>test-label-2</Tabs.Tab>,
]);

it('handles tabs change correctly', () => {
render(<Tabs initialTab={1}>{content}</Tabs>);
expect(tabPanelContent()).toBe('tab-2');
Expand Down

0 comments on commit f2f6d7e

Please sign in to comment.