fix: plugins not loaded with legacy dev (#1764)

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
Tomofumi Chiba
2023-09-13 16:09:50 +02:00
committed by GitHub
co-authored by Marvin Hagemeister
parent 42dc54500c
commit ec2f785455
14 changed files with 149 additions and 10 deletions
+2 -2
View File
@@ -59,7 +59,7 @@ Deno.test("/props/123 page prerender", async () => {
assertEquals(resp.headers.get("content-type"), "text/html; charset=utf-8");
const body = await resp.text();
const doc = parseHtml(body);
const data = JSON.parse(doc.querySelector("body > div").textContent);
const data = JSON.parse(doc.querySelector("body > div")!.textContent!);
assertEquals(data, {
"params": { "id": "123" },
@@ -613,7 +613,7 @@ Deno.test({
const body = await resp.text();
const doc = parseHtml(body);
assertEquals(JSON.parse(doc.querySelector("pre").textContent), {
assertEquals(JSON.parse(doc.querySelector("pre")!.textContent!), {
handler1: "it works",
handler2: "it works",
handler3: "it works",