Skip to content

Commit

Permalink
fixup! Feat(examples): Add Collapse component to test problem with wi…
Browse files Browse the repository at this point in the history
…ndow in resize observer
  • Loading branch information
literat committed Sep 17, 2024
1 parent 95cc692 commit 26070a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { render } from '@testing-library/react';
import React, { useRef } from 'react';
import { useResizeHeight } from '../useResizeHeight';

jest.spyOn(window, 'requestAnimationFrame').mockImplementation((cb: FrameRequestCallback) => {
jest.spyOn(window, 'requestAnimationFrame').mockImplementation(() => {
return 0;
});

Expand Down

0 comments on commit 26070a7

Please sign in to comment.