File tree Expand file tree Collapse file tree
packages/react-core/src/components/Hero/__tests__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,19 +25,19 @@ test(`Renders with ${styles.hero} class on wrapper by default`, () => {
2525test ( `Renders with ${ styles . modifiers . glass } class when isGlass is true` , ( ) => {
2626 render ( < Hero isGlass > Test</ Hero > ) ;
2727
28- expect ( screen . getByText ( 'Test' ) . parentElement ) . toHaveClass ( `${ styles . modifiers . glass } ` , { exact : true } ) ;
28+ expect ( screen . getByText ( 'Test' ) . parentElement ) . toHaveClass ( `${ styles . modifiers . glass } ` ) ;
2929} ) ;
3030
3131test ( `Renders without ${ styles . modifiers . glass } class when isGlass is false` , ( ) => {
3232 render ( < Hero isGlass = { false } > Test</ Hero > ) ;
3333
34- expect ( screen . getByText ( 'Test' ) . parentElement ) . not . toHaveClass ( `${ styles . modifiers . glass } ` , { exact : true } ) ;
34+ expect ( screen . getByText ( 'Test' ) . parentElement ) . not . toHaveClass ( `${ styles . modifiers . glass } ` ) ;
3535} ) ;
3636
3737test ( `Renders without ${ styles . modifiers . glass } class by default` , ( ) => {
3838 render ( < Hero > Test</ Hero > ) ;
3939
40- expect ( screen . getByText ( 'Test' ) . parentElement ) . not . toHaveClass ( `${ styles . modifiers . glass } ` , { exact : true } ) ;
40+ expect ( screen . getByText ( 'Test' ) . parentElement ) . not . toHaveClass ( `${ styles . modifiers . glass } ` ) ;
4141} ) ;
4242
4343test ( 'Renders with custom class name on wrapper when className prop is provided' , ( ) => {
You can’t perform that action at this time.
0 commit comments