File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/components/Reports/sharedComponents/ReportPage/components/ReportBlock/__test__ Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React from 'react';
22import { render , screen } from '@testing-library/react' ;
33import '@testing-library/jest-dom/extend-expect' ;
44import { ReportBlock } from '../ReportBlock' ;
5+ import styles from '../ReportBlock.module.css' ;
56
67describe ( 'ReportBlock component' , ( ) => {
78 it ( 'renders without crashing' , ( ) => {
@@ -12,7 +13,7 @@ describe('ReportBlock component', () => {
1213 it ( 'applies custom class names correctly' , ( ) => {
1314 render ( < ReportBlock className = "custom-class" /> ) ;
1415 const wrapper = screen . getByTestId ( 'report-block-wrapper' ) ;
15- expect ( wrapper ) . toHaveClass ( 'report-block-wrapper custom-class' ) ;
16+ expect ( wrapper ) . toHaveClass ( ` ${ styles [ 'report-block-wrapper' ] } custom-class` ) ;
1617 } ) ;
1718
1819 it ( 'renders with linear gradient when secondColor prop is provided' , ( ) => {
You can’t perform that action at this time.
0 commit comments