Skip to content

Commit a333717

Browse files
committed
1 parent f6166ce commit a333717

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/hydra/parseHydraDocumentation.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,6 +1335,10 @@ test("parse a Hydra documentation", async () => {
13351335
fetchSpy.mockRestore();
13361336
});
13371337

1338+
function getHeaders(): Headers {
1339+
return new Headers({ CustomHeader: "customValue" });
1340+
}
1341+
13381342
test("parse a Hydra documentation using dynamic headers", async () => {
13391343
server.use(
13401344
http.get("http://localhost", () => HttpResponse.json(entrypoint, init)),
@@ -1344,9 +1348,6 @@ test("parse a Hydra documentation using dynamic headers", async () => {
13441348
);
13451349

13461350
const fetchSpy = vi.spyOn(globalThis, "fetch");
1347-
function getHeaders(): Headers {
1348-
return new Headers({ CustomHeader: "customValue" });
1349-
}
13501351

13511352
try {
13521353
const data = await parseHydraDocumentation("http://localhost", {

0 commit comments

Comments
 (0)