From fcb00a7afd8c70586d645a7072fc84fa5de074b3 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 19 Sep 2023 10:43:27 -0300 Subject: test: linkThing: specifically test tag stripping --- test/snapshot/linkThing.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test') diff --git a/test/snapshot/linkThing.js b/test/snapshot/linkThing.js index f76b17df..195d8c0e 100644 --- a/test/snapshot/linkThing.js +++ b/test/snapshot/linkThing.js @@ -73,4 +73,15 @@ testContentFunctions(t, 'linkThing (snapshot)', async (t, evaluate) => { name: '<3', }]}, ]); + + quickSnapshot('nested links in content stripped', { + args: ['localized.staticPage', {directory: 'foo', name: 'Foo'}], + slots: { + content: + html.tag('b', {[html.joinChildren]: ''}, [ + html.tag('a', {href: 'bar'}, `Oooo!`), + ` Very spooky.`, + ]), + }, + }); }); -- cgit 1.3.0-6-gf8a5