MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / abort

Function abort

apps/desktop/src/main/navigation-errors.test.ts:4–10  ·  view source on GitHub ↗
(overrides: Partial<Parameters<typeof isExpectedNavigationAbort>[0]> = {})

Source from the content-addressed store, hash-verified

2import { isExpectedNavigationAbort } from "./navigation-errors";
3
4const 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
12describe("isExpectedNavigationAbort", () => {
13 it("treats ERR_FAILED as expected when the window was destroyed mid-load", () => {

Callers 1

Calls 1

Tested by

no test coverage detected