Skip to content

Commit

Permalink
fix(use-resize-observe.test): fix test import
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonsu committed Feb 23, 2022
1 parent 6ddd1ac commit 7289032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/use-resize-observer.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "resize-observer-polyfill";
import "@juggle/resize-observer";
import { elementsCache } from "./elements-cache";
import { createPositioner } from "./use-positioner";
import { createResizeObserver } from "./use-resize-observer";
Expand All @@ -21,7 +21,7 @@ afterEach(() => {
jest.clearAllTimers();
});

jest.mock("resize-observer-polyfill", () => {
jest.mock("@juggle/resize-observer", () => {
class ResizeObserver {
els = [];
callback: any;
Expand Down

0 comments on commit 7289032

Please sign in to comment.