fix(server): make LayoutProps generic (#1592)

This commit is contained in:
Reed von Redwitz
2023-08-05 22:27:13 +02:00
committed by GitHub
parent cc0e2cb2ec
commit 1fb7f3bea9
5 changed files with 55 additions and 32 deletions
+2
View File
@@ -1,3 +1,4 @@
import { assert } from "./deps.ts";
import { assertSelector, fetchHtml, withFresh } from "./test_utils.ts";
Deno.test("apply root _layout and _app", async () => {
@@ -5,6 +6,7 @@ Deno.test("apply root _layout and _app", async () => {
"./tests/fixture_layouts/main.ts",
async (address) => {
const doc = await fetchHtml(address);
assert(doc.body.textContent?.includes("it works"));
assertSelector(doc, ".app .root-layout .home-page");
const doc2 = await fetchHtml(`${address}/other`);