From 93fd751aeb3a9c0b60889db0073e7907c87f90fe Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 20 Aug 2023 22:06:17 -0300 Subject: content: linkTemplate: strip tags from content --- test/snapshot/linkTemplate.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/snapshot') diff --git a/test/snapshot/linkTemplate.js b/test/snapshot/linkTemplate.js index bdb91216..7351a102 100644 --- a/test/snapshot/linkTemplate.js +++ b/test/snapshot/linkTemplate.js @@ -1,4 +1,5 @@ import t from 'tap'; +import * as html from '#html'; import {testContentFunctions} from '#test-lib'; testContentFunctions(t, 'linkTemplate (snapshot)', async (t, evaluate) => { @@ -50,4 +51,18 @@ testContentFunctions(t, 'linkTemplate (snapshot)', async (t, evaluate) => { name: 'linkTemplate', slots: {href: 'banana'}, }); + + evaluate.snapshot('link in content', { + name: 'linkTemplate', + slots: { + hash: 'the-more-ye-know', + content: [ + `Oh geez oh heck`, + html.tag('a', {href: 'dogs'}, `There's a link in here!!`), + `But here's a normal tag.`, + html.tag('div', `Gotta keep them normal tags.`), + html.tag('div', `But not... NESTED LINKS, OOO.`), + ], + }, + }); }); -- cgit 1.3.0-6-gf8a5