test: add a test for inclusion in SPAs
This commit is contained in:
parent
1220f1a370
commit
75439172c9
3 changed files with 3 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ Deno.test({
|
|||
asserts.assert(response.ok);
|
||||
asserts.assert(body);
|
||||
asserts.assertMatch(body, /SPA PAGE/s);
|
||||
asserts.assertMatch(body, /test include/s);
|
||||
}
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
<html>
|
||||
<body>
|
||||
<h1>SPA PAGE</h1>
|
||||
<!-- #include file="./test_include.html" -->
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
1
tests/www/spa/test_include.html
Normal file
1
tests/www/spa/test_include.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<h2>test include</h2>
|
||||
Loading…
Add table
Add a link
Reference in a new issue