Skip to content

Commit

Permalink
- React linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sophia-massie committed Jan 11, 2025
1 parent e22a933 commit 5a325f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions react/src/components/AssetDetail/AssetQuestionnaire.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ const mockCarouselRef = {

// Mock the antd components used in AssetQuestionnaire
jest.mock('antd', () => ({
Carousel: forwardRef(({ children }: any, ref: any) => {
// Assign the mock methods to the ref
Carousel: forwardRef(function Carousel({ children }: any, ref: any) {
React.useImperativeHandle(ref, () => mockCarouselRef);
return <div data-testid="mock-carousel">{children}</div>;
}),
Expand Down

0 comments on commit 5a325f4

Please sign in to comment.