File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
packages/react-core/src/components/Accordion/__tests__ Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 11import '@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' ;
43import { render , screen } from '@testing-library/react' ;
54
65import { Accordion } from '../Accordion' ;
76import { AccordionContext } from '../AccordionContext' ;
8- // @ts -ignore - react-styles subpath module resolution
97import styles from '@patternfly/react-styles/css/components/Accordion/accordion' ;
108
119test ( 'Renders without children' , ( ) => {
@@ -28,10 +26,10 @@ test('Renders with the passed aria label', () => {
2826
2927test ( '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' ) ;
You can’t perform that action at this time.
0 commit comments