Skip to content

Commit 9efcee4

Browse files
committed
chore: fix test
1 parent 49cdac6 commit 9efcee4

File tree

1 file changed

+2
-1
lines changed
  • src/components/Reports/sharedComponents/ReportPage/components/ReportBlock/__test__

1 file changed

+2
-1
lines changed

src/components/Reports/sharedComponents/ReportPage/components/ReportBlock/__test__/ReportBlock.test.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22
import { render, screen } from '@testing-library/react';
33
import '@testing-library/jest-dom/extend-expect';
44
import { ReportBlock } from '../ReportBlock';
5+
import styles from '../ReportBlock.module.css';
56

67
describe('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', () => {

0 commit comments

Comments
 (0)