From b642137c652e5262c88dd4ddc055df684c8da8a2 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 10 Jan 2023 01:40:42 +0100 Subject: feat(OC/Template): Add `type="module"` for ES6 scripts Signed-off-by: Ferdinand Thiessen --- tests/lib/TemplateFunctionsTest.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'tests/lib/TemplateFunctionsTest.php') diff --git a/tests/lib/TemplateFunctionsTest.php b/tests/lib/TemplateFunctionsTest.php index caecdfc76ac..b2b25ab654c 100644 --- a/tests/lib/TemplateFunctionsTest.php +++ b/tests/lib/TemplateFunctionsTest.php @@ -57,6 +57,35 @@ class TemplateFunctionsTest extends \Test\TestCase { print_unescaped($string); } + public function testEmitScriptTagWithContent() { + $this->expectOutputRegex('/