Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
fix: test failure fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
meenakshi-deriv committed Mar 18, 2024
1 parent beebe87 commit 45dbfe3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions libs/blocks/src/lib/accordion/accordion.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ describe('AccordionBlock', () => {
it('renders with correct class names and content', () => {
const className = 'text-heading-h2';
const title = 'Title goes here';
const childClassName = 'text-heading-h6';

const { getByText } = render(
<AccordionBlock
Expand All @@ -48,11 +47,6 @@ describe('AccordionBlock', () => {
//renders with the correct title
expect(getByText(title)).toBeInTheDocument();

const childTitleElement = getByText(childTitle);

//renders with correct classname
expect(childTitleElement).toHaveClass(childClassName);

//renders with the correct title
expect(getByText(subTitle)).toBeInTheDocument();
});
Expand Down

0 comments on commit 45dbfe3

Please sign in to comment.