From 72c29f7dfee2bdd7ded4113f0bbccc74d9ea60f9 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 19 Sep 2023 10:36:45 -0300 Subject: test: linkThing: basic tests (snapshot) --- tap-snapshots/test/snapshot/linkThing.js.test.cjs | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tap-snapshots/test/snapshot/linkThing.js.test.cjs (limited to 'tap-snapshots') diff --git a/tap-snapshots/test/snapshot/linkThing.js.test.cjs b/tap-snapshots/test/snapshot/linkThing.js.test.cjs new file mode 100644 index 00000000..2e52d0a2 --- /dev/null +++ b/tap-snapshots/test/snapshot/linkThing.js.test.cjs @@ -0,0 +1,35 @@ +/* IMPORTANT + * This snapshot file is auto-generated, but designed for humans. + * It should be checked into source control and tracked carefully. + * Re-generate by setting TAP_SNAPSHOT=1 and running tests. + * Make sure to inspect the output below. Do not ignore changes! + */ +'use strict' +exports[`test/snapshot/linkThing.js TAP linkThing (snapshot) > basic behavior 1`] = ` +Cool track! +` + +exports[`test/snapshot/linkThing.js TAP linkThing (snapshot) > color 1`] = ` +Showtime (Piano Refrain) +Showtime (Piano Refrain) +Showtime (Piano Refrain) +` + +exports[`test/snapshot/linkThing.js TAP linkThing (snapshot) > preferShortName 1`] = ` +Five +` + +exports[`test/snapshot/linkThing.js TAP linkThing (snapshot) > tags in name escaped 1`] = ` +<a href="SNOOPING">AS USUAL</a> I SEE +<b>boldface</b> +>Exile< +<3 +` + +exports[`test/snapshot/linkThing.js TAP linkThing (snapshot) > tooltip & content 1`] = ` +Beyond Canon +Beyond Canon +Next +Banana +Banana +` -- cgit 1.3.0-6-gf8a5 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 --- tap-snapshots/test/snapshot/linkThing.js.test.cjs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tap-snapshots') diff --git a/tap-snapshots/test/snapshot/linkThing.js.test.cjs b/tap-snapshots/test/snapshot/linkThing.js.test.cjs index 2e52d0a2..1a98cfdd 100644 --- a/tap-snapshots/test/snapshot/linkThing.js.test.cjs +++ b/tap-snapshots/test/snapshot/linkThing.js.test.cjs @@ -15,6 +15,10 @@ exports[`test/snapshot/linkThing.js TAP linkThing (snapshot) > color 1`] = ` Showtime (Piano Refrain) ` +exports[`test/snapshot/linkThing.js TAP linkThing (snapshot) > nested links in content stripped 1`] = ` +Oooo! Very spooky. +` + exports[`test/snapshot/linkThing.js TAP linkThing (snapshot) > preferShortName 1`] = ` Five ` -- cgit 1.3.0-6-gf8a5