From ec34eb807178050fab744996007a2ff8038cde64 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 5 Oct 2024 10:49:40 -0300 Subject: test: transformContent: test how punctuation is absorbed --- 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 0604d96c..ac23a1bf 100644 --- a/tap-snapshots/test/snapshot/transformContent.js.test.cjs +++ b/tap-snapshots/test/snapshot/transformContent.js.test.cjs @@ -5,6 +5,11 @@ * Make sure to inspect the output below. Do not ignore changes! */ 'use strict' +exports[`test/snapshot/transformContent.js > TAP > transformContent (snapshot) > absorb punctuation 1`] = ` +

Don't you think this is an interesting pull request, Steve?

+

Aren't you interested... in checking it out?!!

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

Hello world! This is SO COOL.

` diff --git a/test/snapshot/transformContent.js b/test/snapshot/transformContent.js index fffd9ad5..63391681 100644 --- a/test/snapshot/transformContent.js +++ b/test/snapshot/transformContent.js @@ -161,6 +161,11 @@ testContentFunctions(t, 'transformContent (snapshot)', async (t, evaluate) => { `Email cute dogs to qznebula@protonmail.com please.\n` + `Just kidding... [unless?](mailto:qznebula@protonmail.com)`); + quickSnapshot( + `absorb punctuation`, + `Don't you think this is an [interesting pull request](https://github.com/hsmusic/hsmusic-wiki/pull/567), Steve?\n` + + `Aren't you [interested](https://github.com/hsmusic/hsmusic-wiki/pull/567)... in [checking it out](https://github.com/hsmusic/hsmusic-wiki/pull/567)?!!`); + // TODO: Snapshots for mode: inline // TODO: Snapshots for mode: single-link }); -- cgit 1.3.0-6-gf8a5