diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-08-09 18:37:40 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-08-09 18:37:40 -0300 |
commit | f00554fe281dfccfed09524b4fc9a6677a56ffcf (patch) | |
tree | ae8f2fe4f3b0023eea118caef6354b09079dd8ec /tap-snapshots/test | |
parent | d90d5dc841c1f910f78f7307dbb1295f04fe7ade (diff) |
test: transformContent (snapshot) - lyrics line break tests
Diffstat (limited to 'tap-snapshots/test')
-rw-r--r-- | tap-snapshots/test/snapshot/transformContent.js.test.cjs | 39 |
1 files changed, 34 insertions, 5 deletions
diff --git a/tap-snapshots/test/snapshot/transformContent.js.test.cjs b/tap-snapshots/test/snapshot/transformContent.js.test.cjs index 4b4e090f..6b30ebc2 100644 --- a/tap-snapshots/test/snapshot/transformContent.js.test.cjs +++ b/tap-snapshots/test/snapshot/transformContent.js.test.cjs @@ -28,19 +28,48 @@ exports[`test/snapshot/transformContent.js TAP transformContent (snapshot) > lin ` -exports[`test/snapshot/transformContent.js TAP transformContent (snapshot) > non-inline image #1 1`] = ` -<a class="box image-link content-image" href="spark.png"><div class="image-container"><div class="image-inner-area"><img src="spark.png"></div></div></a> +exports[`test/snapshot/transformContent.js TAP transformContent (snapshot) > lyrics - basic line breaks 1`] = ` +<p>Hey, ho<br> +And away we go<br> +Truly, music</p> +<p>(Oh yeah)<br> +(That's right)</p> + +` + +exports[`test/snapshot/transformContent.js TAP transformContent (snapshot) > lyrics - line breaks around tags 1`] = ` +<p>The date be <time datetime="Tue, 13 Apr 2004 03:00:00 GMT">4/13/2004</time><br> +I say, the date be <time datetime="Tue, 13 Apr 2004 03:00:00 GMT">4/13/2004</time><br> +<time datetime="Tue, 13 Apr 2004 03:00:00 GMT">4/13/2004</time><br> +<time datetime="Tue, 13 Apr 2004 03:00:00 GMT">4/13/2004</time><time datetime="Tue, 13 Apr 2004 03:00:00 GMT">4/13/2004</time><time datetime="Tue, 13 Apr 2004 03:00:00 GMT">4/13/2004</time><br> +(Aye!)</p> +<p><time datetime="Tue, 13 Apr 2004 03:00:00 GMT">4/13/2004</time><br> +<time datetime="Tue, 13 Apr 2004 03:00:00 GMT">4/13/2004</time><time datetime="Tue, 13 Apr 2004 03:00:00 GMT">4/13/2004</time><br> +<time datetime="Tue, 13 Apr 2004 03:00:00 GMT">4/13/2004</time><br></p> +<p><time datetime="Tue, 13 Apr 2004 03:00:00 GMT">4/13/2004</time><br> +<time datetime="Tue, 13 Apr 2004 03:00:00 GMT">4/13/2004</time>, and don't ye forget it</p> + +` +exports[`test/snapshot/transformContent.js TAP transformContent (snapshot) > lyrics - repeated and edge line breaks 1`] = ` +<p>Well, you know<br> +How it goes</p> +<p>Yessiree</p> + +` + +exports[`test/snapshot/transformContent.js TAP transformContent (snapshot) > non-inline image #1 1`] = ` +<div class="content-image"><a class="box image-link" href="spark.png"><div class="image-container"><div class="image-inner-area"><img src="spark.png"></div></div></a></div> ` exports[`test/snapshot/transformContent.js TAP transformContent (snapshot) > non-inline image #2 1`] = ` <p>Rad.</p> -<a class="box image-link content-image" href="spark.png"><div class="image-container"><div class="image-inner-area"><img src="spark.png"></div></div></a> - +<div class="content-image"><a class="box image-link" href="spark.png"><div class="image-container"><div class="image-inner-area"><img src="spark.png"></div></div></a></div> ` exports[`test/snapshot/transformContent.js TAP transformContent (snapshot) > non-inline image #3 1`] = ` -<a class="box image-link content-image" href="spark.png"><div class="image-container"><div class="image-inner-area"><img src="spark.png"></div></div></a> +<div class="content-image"><a class="box image-link" href="spark.png"><div class="image-container"><div class="image-inner-area"><img src="spark.png"></div></div></a></div> + <p>Baller.</p> ` |