Skip to content

Commit ecbb0be

Browse files
committed
fix test file
1 parent 91c45a4 commit ecbb0be

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/react-core/src/components/Accordion/__tests__/Accordion.test.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import '@testing-library/jest-dom';
2-
// eslint-disable-next-line no-restricted-imports -- React in scope required for TS (test file)
3-
import React from 'react';
2+
import { Fragment } from 'react';
43
import { render, screen } from '@testing-library/react';
54

65
import { Accordion } from '../Accordion';
76
import { AccordionContext } from '../AccordionContext';
8-
// @ts-ignore - react-styles subpath module resolution
97
import styles from '@patternfly/react-styles/css/components/Accordion/accordion';
108

119
test('Renders without children', () => {
@@ -28,10 +26,10 @@ test('Renders with the passed aria label', () => {
2826

2927
test('Renders with inherited element props spread to the component', () => {
3028
render(
31-
<>
29+
<Fragment>
3230
<Accordion aria-labelledby="labelling-id">Test</Accordion>
3331
<p id="labelling-id">Label</p>
34-
</>
32+
</Fragment>
3533
);
3634

3735
expect(screen.getByText('Test')).toHaveAccessibleName('Label');

0 commit comments

Comments
 (0)