From 1978f9a53b398b60bcffb582bf5b1183aff48bcc Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 23 Sep 2024 22:58:05 -0300 Subject: test: transformContent: test how email addresses are treated --- tap-snapshots/test/snapshot/transformContent.js.test.cjs | 5 +++++ test/snapshot/transformContent.js | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/tap-snapshots/test/snapshot/transformContent.js.test.cjs b/tap-snapshots/test/snapshot/transformContent.js.test.cjs index 8d29d967..0604d96c 100644 --- a/tap-snapshots/test/snapshot/transformContent.js.test.cjs +++ b/tap-snapshots/test/snapshot/transformContent.js.test.cjs @@ -14,6 +14,11 @@ exports[`test/snapshot/transformContent.js > TAP > transformContent (snapshot) >

Very nice:

` +exports[`test/snapshot/transformContent.js > TAP > transformContent (snapshot) > emails 1`] = ` +

Email cute dogs to qznebula@protonmail.com please.

+

Just kidding... unless?

+` + exports[`test/snapshot/transformContent.js > TAP > transformContent (snapshot) > escape end of tag 1`] = `

My favorite album is [Tactical Omission].

Your favorite album is [Tactical Wha-Huh-Now].

diff --git a/test/snapshot/transformContent.js b/test/snapshot/transformContent.js index 87e337e4..fffd9ad5 100644 --- a/test/snapshot/transformContent.js +++ b/test/snapshot/transformContent.js @@ -156,6 +156,11 @@ testContentFunctions(t, 'transformContent (snapshot)', async (t, evaluate) => { `[[date:13 April 2004]], and don't ye forget it`, {mode: 'lyrics'}); + quickSnapshot( + 'emails', + `Email cute dogs to qznebula@protonmail.com please.\n` + + `Just kidding... [unless?](mailto:qznebula@protonmail.com)`); + // TODO: Snapshots for mode: inline // TODO: Snapshots for mode: single-link }); -- cgit 1.3.0-6-gf8a5