fix: missing Component with async app + layout (#1848)

This commit is contained in:
Marvin Hagemeister
2023-10-04 14:10:11 +02:00
committed by GitHub
parent bed185688c
commit f7000c3f53
8 changed files with 80 additions and 1 deletions
+10
View File
@@ -191,3 +191,13 @@ Deno.test({
);
},
});
Deno.test("mix async app and layouts", async () => {
await withFakeServe(
"./tests/fixture_layouts_2/main.ts",
async (server) => {
const doc = await server.getHtml(`/`);
assertSelector(doc, ".app > .root-layout > .home-page");
},
);
});