(overrides: Partial<Parameters<typeof isExpectedNavigationAbort>[0]> = {})
| 2 | import { isExpectedNavigationAbort } from "./navigation-errors"; |
| 3 | |
| 4 | const abort = (overrides: Partial<Parameters<typeof isExpectedNavigationAbort>[0]> = {}) => |
| 5 | isExpectedNavigationAbort({ |
| 6 | message: "ERR_FAILED (-2) loading 'http://127.0.0.1:4789/?_token=redacted'", |
| 7 | windowDestroyed: false, |
| 8 | appQuitting: false, |
| 9 | ...overrides, |
| 10 | }); |
| 11 | |
| 12 | describe("isExpectedNavigationAbort", () => { |
| 13 | it("treats ERR_FAILED as expected when the window was destroyed mid-load", () => { |
no test coverage detected