Skip to content

Commit

Permalink
fixup! BREAKING CHANGE(web-react): id prop is required for all form c…
Browse files Browse the repository at this point in the history
…omponents #DS-885
  • Loading branch information
curdaj committed May 20, 2024
1 parent c187124 commit 47142ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web-react/tests/providerTests/requiredPropsTest.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react';
import React, { ComponentType } from 'react';
import React, { cloneElement, ComponentType } from 'react';

export const requiredPropsTest = (
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand All @@ -9,7 +9,7 @@ export const requiredPropsTest = (
attributeValue: string,
) => {
it(`should have correct ${attribute}`, () => {
render(React.cloneElement(<Component />, { [attribute]: attributeValue }));
render(cloneElement(<Component />, { [attribute]: attributeValue }));

const element = screen.getByRole(role);

Expand Down

0 comments on commit 47142ae

Please sign in to comment.