fix: attributes on <body> not being rendered (#1648)

This commit is contained in:
Marvin Hagemeister
2023-08-16 22:26:23 +02:00
committed by GitHub
parent 09dc65604b
commit 9f97e3423c
3 changed files with 20 additions and 4 deletions
+12
View File
@@ -66,3 +66,15 @@ Deno.test("don't duplicate <title>", async () => {
},
);
});
Deno.test("sets <html> + <head> + <body> classes", async () => {
await withFresh(
"./tests/fixture_explicit_app/main.ts",
async (address) => {
const doc = await fetchHtml(`${address}`);
assertSelector(doc, "html.html");
assertSelector(doc, "head.head");
assertSelector(doc, "body.body");
},
);
});