test: add a test for inclusion in SPAs

This commit is contained in:
Andy Burke 2025-12-04 14:59:14 -08:00
parent 1220f1a370
commit 75439172c9
3 changed files with 3 additions and 0 deletions

View file

@ -27,6 +27,7 @@ Deno.test({
asserts.assert(response.ok); asserts.assert(response.ok);
asserts.assert(body); asserts.assert(body);
asserts.assertMatch(body, /SPA PAGE/s); asserts.assertMatch(body, /SPA PAGE/s);
asserts.assertMatch(body, /test include/s);
} }
{ {

View file

@ -2,5 +2,6 @@
<html> <html>
<body> <body>
<h1>SPA PAGE</h1> <h1>SPA PAGE</h1>
<!-- #include file="./test_include.html" -->
</body> </body>
</html> </html>

View file

@ -0,0 +1 @@
<h2>test include</h2>