Skip to content

Commit 7d91670

Browse files
committed
Satisfy lint in Astro package test
Make the mock federation fetch methods await their callback results so the test continues to return Promise<Response> while satisfying Deno's require-await lint rule. Assisted-by: Codex:gpt-5.4
1 parent cb59fb3 commit 7d91670

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/astro/src/package.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ test("self-reference ESM import exposes working Astro integration API", async ()
6969
if (options.onNotAcceptable == null) {
7070
throw new TypeError("Expected onNotAcceptable to be defined");
7171
}
72-
return options.onNotAcceptable(request);
72+
return await options.onNotAcceptable(request);
7373
},
7474
}),
7575
() => "test-context",
@@ -107,7 +107,9 @@ test(
107107
if (options.onNotFound == null) {
108108
throw new TypeError("Expected onNotFound to be defined");
109109
}
110-
return options.onNotFound(new Request("https://example.com/actor"));
110+
return await options.onNotFound(
111+
new Request("https://example.com/actor"),
112+
);
111113
},
112114
}),
113115
() => undefined,

0 commit comments

Comments
 (0)