refactor: replace references of options with config (#1903)

This commit is contained in:
Asher Gomez
2023-10-11 09:25:03 +02:00
committed by GitHub
parent 1d12853889
commit 6ddef91d95
28 changed files with 138 additions and 127 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ import {
retry,
} from "./deps.ts";
import manifest from "./fixture/fresh.gen.ts";
import options from "./fixture/options.ts";
import config from "./fixture/fresh.config.ts";
import { BUILD_ID } from "../src/server/build_id.ts";
import {
assertSelector,
@@ -22,7 +22,7 @@ import {
withPageName,
} from "./test_utils.ts";
const ctx = await ServerContext.fromManifest(manifest, options);
const ctx = await ServerContext.fromManifest(manifest, config);
const handler = ctx.handler();
Deno.test("/ page prerender", async () => {
@@ -303,7 +303,7 @@ Deno.test("/foo/:path*", async () => {
Deno.test("static files in custom directory", async () => {
const newCtx = await ServerContext.fromManifest(manifest, {
...options,
...config,
staticDir: "./custom_static",
});
const newRouter = (req: Request) => {