diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-09-19 10:43:27 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-19 10:43:27 -0300 |
commit | fcb00a7afd8c70586d645a7072fc84fa5de074b3 (patch) | |
tree | 93837f7d56f3c1132584bf62093f43af599771f4 /test/snapshot | |
parent | 72c29f7dfee2bdd7ded4113f0bbccc74d9ea60f9 (diff) |
test: linkThing: specifically test tag stripping
Diffstat (limited to 'test/snapshot')
-rw-r--r-- | test/snapshot/linkThing.js | 11 |
1 files changed, 11 insertions, 0 deletions
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.`, + ]), + }, + }); }); |