@@ -15022,11 +15022,13 @@ describe("a router", () => {
15022
15022
let { query } = createStaticHandler([
15023
15023
{
15024
15024
id: "root",
15025
- path: "/",
15025
+ path: "/path ",
15026
15026
loader: () => dfd.promise,
15027
15027
},
15028
15028
]);
15029
- let request = createRequest("/", { signal: controller.signal });
15029
+ let request = createRequest("/path?key=value", {
15030
+ signal: controller.signal,
15031
+ });
15030
15032
let e;
15031
15033
try {
15032
15034
let contextPromise = query(request);
@@ -15036,7 +15038,9 @@ describe("a router", () => {
15036
15038
} catch (_e) {
15037
15039
e = _e;
15038
15040
}
15039
- expect(e).toMatchInlineSnapshot(`[Error: query() call aborted]`);
15041
+ expect(e).toMatchInlineSnapshot(
15042
+ `[Error: query() call aborted: GET http://localhost/path?key=value]`
15043
+ );
15040
15044
});
15041
15045
15042
15046
it("should handle aborted submit requests", async () => {
@@ -15045,11 +15049,11 @@ describe("a router", () => {
15045
15049
let { query } = createStaticHandler([
15046
15050
{
15047
15051
id: "root",
15048
- path: "/",
15052
+ path: "/path ",
15049
15053
action: () => dfd.promise,
15050
15054
},
15051
15055
]);
15052
- let request = createSubmitRequest("/", {
15056
+ let request = createSubmitRequest("/path?key=value ", {
15053
15057
signal: controller.signal,
15054
15058
});
15055
15059
let e;
@@ -15061,7 +15065,9 @@ describe("a router", () => {
15061
15065
} catch (_e) {
15062
15066
e = _e;
15063
15067
}
15064
- expect(e).toMatchInlineSnapshot(`[Error: query() call aborted]`);
15068
+ expect(e).toMatchInlineSnapshot(
15069
+ `[Error: query() call aborted: POST http://localhost/path?key=value]`
15070
+ );
15065
15071
});
15066
15072
15067
15073
it("should assign signals to requests by default (per the", async () => {
@@ -16327,11 +16333,11 @@ describe("a router", () => {
16327
16333
let { queryRoute } = createStaticHandler([
16328
16334
{
16329
16335
id: "root",
16330
- path: "/",
16336
+ path: "/path ",
16331
16337
loader: () => dfd.promise,
16332
16338
},
16333
16339
]);
16334
- let request = createRequest("/", {
16340
+ let request = createRequest("/path?key=value ", {
16335
16341
signal: controller.signal,
16336
16342
});
16337
16343
let e;
@@ -16343,7 +16349,9 @@ describe("a router", () => {
16343
16349
} catch (_e) {
16344
16350
e = _e;
16345
16351
}
16346
- expect(e).toMatchInlineSnapshot(`[Error: queryRoute() call aborted]`);
16352
+ expect(e).toMatchInlineSnapshot(
16353
+ `[Error: queryRoute() call aborted: GET http://localhost/path?key=value]`
16354
+ );
16347
16355
});
16348
16356
16349
16357
it("should handle aborted submit requests", async () => {
@@ -16352,11 +16360,11 @@ describe("a router", () => {
16352
16360
let { queryRoute } = createStaticHandler([
16353
16361
{
16354
16362
id: "root",
16355
- path: "/",
16363
+ path: "/path ",
16356
16364
action: () => dfd.promise,
16357
16365
},
16358
16366
]);
16359
- let request = createSubmitRequest("/", {
16367
+ let request = createSubmitRequest("/path?key=value ", {
16360
16368
signal: controller.signal,
16361
16369
});
16362
16370
let e;
@@ -16368,7 +16376,9 @@ describe("a router", () => {
16368
16376
} catch (_e) {
16369
16377
e = _e;
16370
16378
}
16371
- expect(e).toMatchInlineSnapshot(`[Error: queryRoute() call aborted]`);
16379
+ expect(e).toMatchInlineSnapshot(
16380
+ `[Error: queryRoute() call aborted: POST http://localhost/path?key=value]`
16381
+ );
16372
16382
});
16373
16383
16374
16384
it("should assign signals to requests by default (per the spec)", async () => {
0 commit comments