fix: rename layout config options (#1619)

This commit is contained in:
Marvin Hagemeister
2023-08-14 15:47:36 +02:00
committed by GitHub
parent ba67d895ce
commit 6436a43dce
13 changed files with 124 additions and 63 deletions
+12 -1
View File
@@ -120,6 +120,17 @@ Deno.test("disable _app layout", async () => {
);
});
Deno.test("disable _app in _layout", async () => {
await withFresh(
"./tests/fixture_layouts/main.ts",
async (address) => {
const doc = await fetchHtml(`${address}/override/layout_no_app`);
assertNotSelector(doc, "body body");
assertSelector(doc, "body > .override-layout > .no-app-layout > .page");
},
);
});
Deno.test("override layouts", async () => {
await withFresh(
"./tests/fixture_layouts/main.ts",
@@ -140,7 +151,7 @@ Deno.test("route overrides layout", async () => {
);
});
Deno.test("route overrides layout", async () => {
Deno.test("route overrides layout and app", async () => {
await withFresh(
"./tests/fixture_layouts/main.ts",
async (address) => {