Skip to content

Commit 446791d

Browse files
committed
test: fix testing errors
1 parent ac23b8c commit 446791d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/__tests__/useWebAnimations.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ describe("useWebAnimations", () => {
5555
it("should call onReady correctly", async () => {
5656
console.error = jest.fn();
5757
const onReady = jest.fn();
58-
const { waitForNextUpdate } = renderHelper({ onReady });
59-
await waitForNextUpdate();
58+
renderHelper({ onReady });
59+
await Promise.resolve();
6060
expect(onReady).toHaveBeenCalledWith({
6161
playState: e.playState,
6262
animation: e,

0 commit comments

Comments
 (0)