1 | import React from 'react';
|
2 | import { render, screen } from '@testing-library/react';
|
3 | import '@testing-library/jest-dom';
|
4 | import { AccordionItem } from '..';
|
5 | import { testForCustomClass, testForCustomTag } from '../testUtils';
|
6 |
|
7 | describe('AccordionItem', () => {
|
8 | it('should render with "accordion-item" class', () => {
|
9 | render(<AccordionItem data-testid="accordion-item" />);
|
10 |
|
11 | expect(screen.getByTestId('accordion-item')).toHaveClass('accordion-item');
|
12 | });
|
13 |
|
14 | it('should render additional classes', () => {
|
15 | testForCustomClass(AccordionItem);
|
16 | });
|
17 |
|
18 | it('should render custom tag', () => {
|
19 | testForCustomTag(AccordionItem);
|
20 | });
|
21 | });
|
22 |
|
\ | No newline at end of file |