Skip to content

Commit 69ba336

Browse files
committed
test: add missing acts
1 parent 3610583 commit 69ba336

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/wouter/test/use-hash-location.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,14 @@ test("handles navigation with data: protocol", async () => {
233233
const initialHistoryLength = history.length;
234234

235235
await waitForHashChangeEvent(() => {
236-
navigate("/new-path");
236+
act(() => navigate("/new-path"));
237237
});
238238

239239
expect(location.hash).toBe("#/new-path");
240240
expect(history.length).toBe(initialHistoryLength + 1);
241241

242242
await waitForHashChangeEvent(() => {
243-
navigate("/another-path", { replace: true });
243+
act(() => navigate("/another-path", { replace: true }));
244244
});
245245

246246
expect(location.hash).toBe("#/another-path");

0 commit comments

Comments
 (0)