style(test): prettier-format history.dom.test.ts (release gate fix)
This commit is contained in:
@@ -14,7 +14,10 @@ import { renderHook, act } from "@testing-library/react";
|
||||
import { useBackToClose, useBackToExit } from "./history";
|
||||
|
||||
// Let the mount effect's coalesced reconcile microtask settle.
|
||||
const settle = () => act(async () => { await Promise.resolve(); });
|
||||
const settle = () =>
|
||||
act(async () => {
|
||||
await Promise.resolve();
|
||||
});
|
||||
// A genuine user Back (browser already dropped the entry; popstate arrives with no pending back()).
|
||||
const userBack = () =>
|
||||
act(() => {
|
||||
|
||||
Reference in New Issue
Block a user