« get me outta code hell

external-links, test: update linkExternal snapshot tests - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/tap-snapshots/test/snapshot/linkExternal.js.test.cjs
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-03-29 19:08:33 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-03-29 20:41:54 -0300
commit40d6c1c3bd8c454479cdb283086b4bfc339688fe (patch)
treeba26b61db8a3b75eef58b14b2236316d2c25ab82 /tap-snapshots/test/snapshot/linkExternal.js.test.cjs
parent77bb29bfbcfe21dd6d01776f8578b2ff894076c8 (diff)
external-links, test: update linkExternal snapshot tests
Diffstat (limited to 'tap-snapshots/test/snapshot/linkExternal.js.test.cjs')
-rw-r--r--tap-snapshots/test/snapshot/linkExternal.js.test.cjs105
1 files changed, 25 insertions, 80 deletions
diff --git a/tap-snapshots/test/snapshot/linkExternal.js.test.cjs b/tap-snapshots/test/snapshot/linkExternal.js.test.cjs
index 1c1f35f4..754bed12 100644
--- a/tap-snapshots/test/snapshot/linkExternal.js.test.cjs
+++ b/tap-snapshots/test/snapshot/linkExternal.js.test.cjs
@@ -5,13 +5,7 @@
  * Make sure to inspect the output below.  Do not ignore changes!
  */
 'use strict'
-exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: album, style: compact 1`] = `
-<a href="https://youtu.be/abc" class="nowrap">youtu.be</a>
-<a href="https://youtube.com/watch?v=abc" class="nowrap">youtube.com</a>
-<a href="https://youtube.com/Playlist?list=kweh" class="nowrap">youtube.com</a>
-`
-
-exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: album, style: normal 1`] = `
+exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: album, style: handle 1`] = `
 <a href="https://youtu.be/abc" class="nowrap">YouTube</a>
 <a href="https://youtube.com/watch?v=abc" class="nowrap">YouTube</a>
 <a href="https://youtube.com/Playlist?list=kweh" class="nowrap">YouTube</a>
@@ -23,31 +17,19 @@ exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context
 <a href="https://youtube.com/Playlist?list=kweh" class="nowrap">YouTube</a>
 `
 
-exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: albumMultipleTracks, style: compact 1`] = `
-<a href="https://youtu.be/abc" class="nowrap">youtu.be</a>
-<a href="https://youtube.com/watch?v=abc" class="nowrap">youtube.com</a>
-<a href="https://youtube.com/Playlist?list=kweh" class="nowrap">youtube.com</a>
-`
-
-exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: albumMultipleTracks, style: normal 1`] = `
+exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: albumMultipleTracks, style: handle 1`] = `
 <a href="https://youtu.be/abc" class="nowrap">YouTube (full album)</a>
 <a href="https://youtube.com/watch?v=abc" class="nowrap">YouTube (full album)</a>
 <a href="https://youtube.com/Playlist?list=kweh" class="nowrap">YouTube</a>
 `
 
 exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: albumMultipleTracks, style: platform 1`] = `
-<a href="https://youtu.be/abc" class="nowrap">YouTube</a>
-<a href="https://youtube.com/watch?v=abc" class="nowrap">YouTube</a>
+<a href="https://youtu.be/abc" class="nowrap">YouTube (full album)</a>
+<a href="https://youtube.com/watch?v=abc" class="nowrap">YouTube (full album)</a>
 <a href="https://youtube.com/Playlist?list=kweh" class="nowrap">YouTube</a>
 `
 
-exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: albumNoTracks, style: compact 1`] = `
-<a href="https://youtu.be/abc" class="nowrap">youtu.be</a>
-<a href="https://youtube.com/watch?v=abc" class="nowrap">youtube.com</a>
-<a href="https://youtube.com/Playlist?list=kweh" class="nowrap">youtube.com</a>
-`
-
-exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: albumNoTracks, style: normal 1`] = `
+exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: albumNoTracks, style: handle 1`] = `
 <a href="https://youtu.be/abc" class="nowrap">YouTube</a>
 <a href="https://youtube.com/watch?v=abc" class="nowrap">YouTube</a>
 <a href="https://youtube.com/Playlist?list=kweh" class="nowrap">YouTube</a>
@@ -59,13 +41,7 @@ exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context
 <a href="https://youtube.com/Playlist?list=kweh" class="nowrap">YouTube</a>
 `
 
-exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: albumOneTrack, style: compact 1`] = `
-<a href="https://youtu.be/abc" class="nowrap">youtu.be</a>
-<a href="https://youtube.com/watch?v=abc" class="nowrap">youtube.com</a>
-<a href="https://youtube.com/Playlist?list=kweh" class="nowrap">youtube.com</a>
-`
-
-exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: albumOneTrack, style: normal 1`] = `
+exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: albumOneTrack, style: handle 1`] = `
 <a href="https://youtu.be/abc" class="nowrap">YouTube</a>
 <a href="https://youtube.com/watch?v=abc" class="nowrap">YouTube</a>
 <a href="https://youtube.com/Playlist?list=kweh" class="nowrap">YouTube</a>
@@ -77,69 +53,38 @@ exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context
 <a href="https://youtube.com/Playlist?list=kweh" class="nowrap">YouTube</a>
 `
 
-exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: flash, style: compact 1`] = `
-<a href="https://www.bgreco.net/hsflash/002238.html" class="nowrap">bgreco.net</a>
-<a href="https://homestuck.com/story/1234" class="nowrap">homestuck.com</a>
-<a href="https://homestuck.com/story/pony" class="nowrap">homestuck.com</a>
-<a href="https://www.youtube.com/watch?v=wKgOp3Kg2wI" class="nowrap">youtube.com</a>
-<a href="https://youtu.be/IOcvkkklWmY" class="nowrap">youtu.be</a>
-<a href="https://some.external.site/foo/bar/" class="nowrap">some.external.site</a>
-`
-
-exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: flash, style: normal 1`] = `
+exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: flash, style: handle 1`] = `
 <a href="https://www.bgreco.net/hsflash/002238.html" class="nowrap">bgreco.net (high quality audio)</a>
 <a href="https://homestuck.com/story/1234" class="nowrap">Homestuck (page 1234)</a>
 <a href="https://homestuck.com/story/pony" class="nowrap">Homestuck (secret page)</a>
 <a href="https://www.youtube.com/watch?v=wKgOp3Kg2wI" class="nowrap">YouTube (on any device)</a>
 <a href="https://youtu.be/IOcvkkklWmY" class="nowrap">YouTube (on any device)</a>
-<a href="https://some.external.site/foo/bar/" class="nowrap">External (some.external.site)</a>
+<a href="https://some.external.site/foo/bar/" class="nowrap">some.external.site</a>
 `
 
 exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: flash, style: platform 1`] = `
-<a href="https://www.bgreco.net/hsflash/002238.html" class="nowrap">bgreco.net</a>
-<a href="https://homestuck.com/story/1234" class="nowrap">Homestuck</a>
-<a href="https://homestuck.com/story/pony" class="nowrap">Homestuck</a>
-<a href="https://www.youtube.com/watch?v=wKgOp3Kg2wI" class="nowrap">YouTube</a>
-<a href="https://youtu.be/IOcvkkklWmY" class="nowrap">YouTube</a>
-<a href="https://some.external.site/foo/bar/" class="nowrap">External</a>
+<a href="https://www.bgreco.net/hsflash/002238.html" class="nowrap">bgreco.net (high quality audio)</a>
+<a href="https://homestuck.com/story/1234" class="nowrap">Homestuck (page 1234)</a>
+<a href="https://homestuck.com/story/pony" class="nowrap">Homestuck (secret page)</a>
+<a href="https://www.youtube.com/watch?v=wKgOp3Kg2wI" class="nowrap">YouTube (on any device)</a>
+<a href="https://youtu.be/IOcvkkklWmY" class="nowrap">YouTube (on any device)</a>
+<a href="https://some.external.site/foo/bar/" class="nowrap">some.external.site</a>
 `
 
-exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: generic, style: compact 1`] = `
+exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: generic, style: handle 1`] = `
 <a href="https://homestuck.bandcamp.com/" class="nowrap">homestuck</a>
 <a href="https://soundcloud.com/plazmataz" class="nowrap">plazmataz</a>
 <a href="https://aeritus.tumblr.com/" class="nowrap">aeritus</a>
-<a href="https://twitter.com/awkwarddoesart" class="nowrap">@awkwarddoesart</a>
-<a href="https://www.deviantart.com/chesswanderlust-sama" class="nowrap">deviantart.com</a>
-<a href="https://en.wikipedia.org/wiki/Haydn_Quartet_(vocal_ensemble)" class="nowrap">en.wikipedia.org</a>
-<a href="https://www.poetryfoundation.org/poets/christina-rossetti" class="nowrap">poetryfoundation.org</a>
-<a href="https://www.instagram.com/levc_egm/" class="nowrap">instagram.com</a>
-<a href="https://www.patreon.com/CecilyRenns" class="nowrap">patreon.com</a>
-<a href="https://open.spotify.com/artist/63SNNpNOicDzG3LY82G4q3" class="nowrap">open.spotify.com</a>
-<a href="https://buzinkai.newgrounds.com/" class="nowrap">buzinkai.newgrounds.com</a>
-<a href="https://music.solatrus.com/" class="nowrap">music.solatrus.com</a>
-<a href="https://types.pl/" class="nowrap">types.pl</a>
-<a href="https://community.fandom.com/" class="nowrap">community.fandom.com</a>
-<a href="https://community.fandom.com/wiki/" class="nowrap">community.fandom.com</a>
-<a href="https://community.fandom.com/wiki/Community_Central" class="nowrap">community.fandom.com</a>
-<a href="https://mspaintadventures.fandom.com/" class="nowrap">mspaintadventures.fandom.com</a>
-<a href="https://mspaintadventures.fandom.com/wiki/" class="nowrap">mspaintadventures.fandom.com</a>
-<a href="https://mspaintadventures.fandom.com/wiki/Draconian_Dignitary" class="nowrap">mspaintadventures.fandom.com</a>
-`
-
-exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: generic, style: normal 1`] = `
-<a href="https://homestuck.bandcamp.com/" class="nowrap">Bandcamp</a>
-<a href="https://soundcloud.com/plazmataz" class="nowrap">SoundCloud</a>
-<a href="https://aeritus.tumblr.com/" class="nowrap">Tumblr</a>
-<a href="https://twitter.com/awkwarddoesart" class="nowrap">Twitter</a>
+<a href="https://twitter.com/awkwarddoesart" class="nowrap">awkwarddoesart</a>
 <a href="https://www.deviantart.com/chesswanderlust-sama" class="nowrap">DeviantArt</a>
 <a href="https://en.wikipedia.org/wiki/Haydn_Quartet_(vocal_ensemble)" class="nowrap">Wikipedia</a>
 <a href="https://www.poetryfoundation.org/poets/christina-rossetti" class="nowrap">Poetry Foundation</a>
 <a href="https://www.instagram.com/levc_egm/" class="nowrap">Instagram</a>
 <a href="https://www.patreon.com/CecilyRenns" class="nowrap">Patreon</a>
 <a href="https://open.spotify.com/artist/63SNNpNOicDzG3LY82G4q3" class="nowrap">Spotify</a>
-<a href="https://buzinkai.newgrounds.com/" class="nowrap">Newgrounds</a>
-<a href="https://music.solatrus.com/" class="nowrap">Bandcamp (music.solatrus.com)</a>
-<a href="https://types.pl/" class="nowrap">Mastodon (types.pl)</a>
+<a href="https://buzinkai.newgrounds.com/" class="nowrap">buzinkai</a>
+<a href="https://music.solatrus.com/" class="nowrap">music.solatrus.com</a>
+<a href="https://types.pl/" class="nowrap">types.pl</a>
 <a href="https://community.fandom.com/" class="nowrap">Fandom</a>
 <a href="https://community.fandom.com/wiki/" class="nowrap">Fandom</a>
 <a href="https://community.fandom.com/wiki/Community_Central" class="nowrap">Fandom</a>
@@ -160,16 +105,16 @@ exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context
 <a href="https://www.patreon.com/CecilyRenns" class="nowrap">Patreon</a>
 <a href="https://open.spotify.com/artist/63SNNpNOicDzG3LY82G4q3" class="nowrap">Spotify</a>
 <a href="https://buzinkai.newgrounds.com/" class="nowrap">Newgrounds</a>
-<a href="https://music.solatrus.com/" class="nowrap">Bandcamp</a>
-<a href="https://types.pl/" class="nowrap">Mastodon</a>
+<a href="https://music.solatrus.com/" class="nowrap">Bandcamp (music.solatrus.com)</a>
+<a href="https://types.pl/" class="nowrap">Mastodon (types.pl)</a>
 <a href="https://community.fandom.com/" class="nowrap">Fandom</a>
 <a href="https://community.fandom.com/wiki/" class="nowrap">Fandom</a>
 <a href="https://community.fandom.com/wiki/Community_Central" class="nowrap">Fandom</a>
-<a href="https://mspaintadventures.fandom.com/" class="nowrap">Fandom</a>
-<a href="https://mspaintadventures.fandom.com/wiki/" class="nowrap">Fandom</a>
-<a href="https://mspaintadventures.fandom.com/wiki/Draconian_Dignitary" class="nowrap">Fandom</a>
+<a href="https://mspaintadventures.fandom.com/" class="nowrap">MSPA Wiki</a>
+<a href="https://mspaintadventures.fandom.com/wiki/" class="nowrap">MSPA Wiki</a>
+<a href="https://mspaintadventures.fandom.com/wiki/Draconian_Dignitary" class="nowrap">MSPA Wiki (Draconian Dignitary)</a>
 `
 
 exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > unknown domain (arbitrary world wide web path) 1`] = `
-<a href="https://snoo.ping.as/usual/i/see/" class="nowrap">External (snoo.ping.as)</a>
+<a href="https://snoo.ping.as/usual/i/see/" class="nowrap">snoo.ping.as</a>
 `