From 75439172c99deec342e5b23d7d540543d3340ef7 Mon Sep 17 00:00:00 2001 From: Andy Burke Date: Thu, 4 Dec 2025 14:59:14 -0800 Subject: [PATCH] test: add a test for inclusion in SPAs --- tests/11_test_spa.test.ts | 1 + tests/www/spa/index.html | 1 + tests/www/spa/test_include.html | 1 + 3 files changed, 3 insertions(+) create mode 100644 tests/www/spa/test_include.html diff --git a/tests/11_test_spa.test.ts b/tests/11_test_spa.test.ts index b569dab..b8c7301 100644 --- a/tests/11_test_spa.test.ts +++ b/tests/11_test_spa.test.ts @@ -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); } { diff --git a/tests/www/spa/index.html b/tests/www/spa/index.html index 6a697d3..6d29980 100644 --- a/tests/www/spa/index.html +++ b/tests/www/spa/index.html @@ -2,5 +2,6 @@

SPA PAGE

+ diff --git a/tests/www/spa/test_include.html b/tests/www/spa/test_include.html new file mode 100644 index 0000000..4d423b8 --- /dev/null +++ b/tests/www/spa/test_include.html @@ -0,0 +1 @@ +

test include