« get me outta code hell

linkExternal.js.test.cjs « snapshot « test « tap-snapshots - 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
blob: 03192e8225779c61d59a9a3833ee44a8889a06d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
/* 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/linkExternal.js > TAP > linkExternal (snapshot) > context: album, style: handle 1`] = `
<a class="external-link" href="https://youtu.be/abc">YouTube</a>
<a class="external-link" href="https://youtube.com/watch?v=abc">YouTube</a>
<a class="external-link" href="https://youtube.com/Playlist?list=kweh">YouTube</a>
`

exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: album, style: platform 1`] = `
<a class="external-link" href="https://youtu.be/abc">YouTube</a>
<a class="external-link" href="https://youtube.com/watch?v=abc">YouTube</a>
<a class="external-link" href="https://youtube.com/Playlist?list=kweh">YouTube</a>
`

exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: albumMultipleTracks, style: handle 1`] = `
<a class="external-link" href="https://youtu.be/abc">YouTube (full album)</a>
<a class="external-link" href="https://youtube.com/watch?v=abc">YouTube (full album)</a>
<a class="external-link" href="https://youtube.com/Playlist?list=kweh">YouTube</a>
`

exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: albumMultipleTracks, style: platform 1`] = `
<a class="external-link" href="https://youtu.be/abc">YouTube (full album)</a>
<a class="external-link" href="https://youtube.com/watch?v=abc">YouTube (full album)</a>
<a class="external-link" href="https://youtube.com/Playlist?list=kweh">YouTube</a>
`

exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: albumNoTracks, style: handle 1`] = `
<a class="external-link" href="https://youtu.be/abc">YouTube</a>
<a class="external-link" href="https://youtube.com/watch?v=abc">YouTube</a>
<a class="external-link" href="https://youtube.com/Playlist?list=kweh">YouTube</a>
`

exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: albumNoTracks, style: platform 1`] = `
<a class="external-link" href="https://youtu.be/abc">YouTube</a>
<a class="external-link" href="https://youtube.com/watch?v=abc">YouTube</a>
<a class="external-link" href="https://youtube.com/Playlist?list=kweh">YouTube</a>
`

exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: albumOneTrack, style: handle 1`] = `
<a class="external-link" href="https://youtu.be/abc">YouTube</a>
<a class="external-link" href="https://youtube.com/watch?v=abc">YouTube</a>
<a class="external-link" href="https://youtube.com/Playlist?list=kweh">YouTube</a>
`

exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: albumOneTrack, style: platform 1`] = `
<a class="external-link" href="https://youtu.be/abc">YouTube</a>
<a class="external-link" href="https://youtube.com/watch?v=abc">YouTube</a>
<a class="external-link" href="https://youtube.com/Playlist?list=kweh">YouTube</a>
`

exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: flash, style: handle 1`] = `
<a class="external-link" href="https://www.bgreco.net/hsflash/002238.html">bgreco.net (high quality audio)</a>
<a class="external-link" href="https://homestuck.com/story/1234">Homestuck (page 1234)</a>
<a class="external-link" href="https://homestuck.com/story/pony">Homestuck (secret page)</a>
<a class="external-link" href="https://www.youtube.com/watch?v=wKgOp3Kg2wI">YouTube (on any device)</a>
<a class="external-link" href="https://youtu.be/IOcvkkklWmY">YouTube (on any device)</a>
<a class="external-link" href="https://some.external.site/foo/bar/">some.external.site</a>
`

exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: flash, style: platform 1`] = `
<a class="external-link" href="https://www.bgreco.net/hsflash/002238.html">bgreco.net (high quality audio)</a>
<a class="external-link" href="https://homestuck.com/story/1234">Homestuck (page 1234)</a>
<a class="external-link" href="https://homestuck.com/story/pony">Homestuck (secret page)</a>
<a class="external-link" href="https://www.youtube.com/watch?v=wKgOp3Kg2wI">YouTube (on any device)</a>
<a class="external-link" href="https://youtu.be/IOcvkkklWmY">YouTube (on any device)</a>
<a class="external-link" href="https://some.external.site/foo/bar/">some.external.site</a>
`

exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: generic, style: handle 1`] = `
<a class="external-link" href="https://music.apple.com/us/artist/system-of-a-down/462715">Apple Music</a>
<a class="external-link" href="https://www.artstation.com/eevaningtea">eevaningtea</a>
<a class="external-link" href="https://witnesstheabsurd.artstation.com/">witnesstheabsurd</a>
<a class="external-link" href="https://music.solatrus.com/">music.solatrus.com</a>
<a class="external-link" href="https://homestuck.bandcamp.com/">homestuck</a>
<a class="external-link" href="https://bsky.app/profile/jacobtheloofah.bsky.social">jacobtheloofah</a>
<a class="external-link" href="https://aliceflare.carrd.co">aliceflare</a>
<a class="external-link" href="https://bigchaslappa.carrd.co/">bigchaslappa</a>
<a class="external-link" href="https://cohost.org/cosmoptera">cosmoptera</a>
<a class="external-link" href="https://music.deconreconstruction.com/albums/catch-322">MUSIC@DCRC</a>
<a class="external-link" href="https://music.deconreconstruction.com/albums/catch-322?track=arcjecs-theme">MUSIC@DCRC</a>
<a class="external-link" href="https://www.deconreconstruction.com/">Deconreconstruction</a>
<a class="external-link" href="https://culdhira.deviantart.com">culdhira</a>
<a class="external-link" href="https://www.deviantart.com/chesswanderlust-sama">chesswanderlust-sama</a>
<a class="external-link" href="https://www.deviantart.com/shilloshilloh/art/Homestuck-Jake-English-268874606">DeviantArt</a>
<a class="external-link" href="https://www.facebook.com/DoomedCloud/">DoomedCloud</a>
<a class="external-link" href="https://www.facebook.com/pages/WoodenToaster/280642235307371">WoodenToaster</a>
<a class="external-link" href="https://www.facebook.com/Svixy/posts/400018786702633">Facebook</a>
<a class="external-link" href="https://mspaintadventures.fandom.com/wiki/Draconian_Dignitary">MSPA Wiki (Draconian Dignitary)</a>
<a class="external-link" href="https://mspaintadventures.fandom.com/wiki/">MSPA Wiki</a>
<a class="external-link" href="https://mspaintadventures.fandom.com/">MSPA Wiki</a>
<a class="external-link" href="https://community.fandom.com/">Fandom</a>
<a class="external-link" href="https://community.fandom.com/wiki/">Fandom</a>
<a class="external-link" href="https://community.fandom.com/wiki/Community_Central">Fandom</a>
<a class="external-link" href="https://gamebanana.com/members/2028092">GameBanana</a>
<a class="external-link" href="https://gamebanana.com/mods/459476">GameBanana</a>
<a class="external-link" href="https://homestuck.com/">Homestuck</a>
<a class="external-link" href="https://hsmusic.wiki/media/misc/archive/Firefly%20Cloud%20Remix.mp3">HSMusic (wiki archive)</a>
<a class="external-link" href="https://hsmusic.wiki/feedback/">HSMusic</a>
<a class="external-link" href="https://archive.org/details/a-life-well-lived">Internet Archive</a>
<a class="external-link" href="https://archive.org/details/VastError_Volume1/11+Renaissance.mp3">Internet Archive</a>
<a class="external-link" href="https://instagram.com/bass.and.noises">bass.and.noises</a>
<a class="external-link" href="https://www.instagram.com/levc_egm/">levc_egm</a>
<a class="external-link" href="https://tuyoki.itch.io/">tuyoki</a>
<a class="external-link" href="https://itch.io/profile/bravelittletoreador">bravelittletoreador</a>
<a class="external-link" href="https://ko-fi.com/gnaach">gnaach</a>
<a class="external-link" href="https://linktr.ee/bbpanzu">bbpanzu</a>
<a class="external-link" href="https://types.pl/">types.pl</a>
<a class="external-link" href="https://canwc.mspfa.com/">MSPFA</a>
<a class="external-link" href="https://mspfa.com/?s=12003&p=1045">MSPFA</a>
<a class="external-link" href="https://mspfa.com/user/?u=103334508819793669241">MSPFA</a>
<a class="external-link" href="https://wodaro.neocities.org">wodaro.neocities.org</a>
<a class="external-link" href="https://neomints.neocities.org/">neomints.neocities.org</a>
<a class="external-link" href="https://buzinkai.newgrounds.com/">buzinkai</a>
<a class="external-link" href="https://www.newgrounds.com/audio/listen/1256058">Newgrounds</a>
<a class="external-link" href="https://www.patreon.com/CecilyRenns">CecilyRenns</a>
<a class="external-link" href="https://www.poetryfoundation.org/poets/christina-rossetti">Poetry Foundation</a>
<a class="external-link" href="https://www.poetryfoundation.org/poems/45000/remember-56d224509b7ae">Poetry Foundation</a>
<a class="external-link" href="https://soundcloud.com/plazmataz">plazmataz</a>
<a class="external-link" href="https://soundcloud.com/worthikids/1-i-accidentally-broke-my">SoundCloud</a>
<a class="external-link" href="https://open.spotify.com/artist/63SNNpNOicDzG3LY82G4q3">Spotify</a>
<a class="external-link" href="https://open.spotify.com/album/0iHvPD8rM3hQa0qeVtPQ3t">Spotify</a>
<a class="external-link" href="https://open.spotify.com/track/6YEGQH32aAXb9vQQbBrPlw">Spotify</a>
<a class="external-link" href="https://www.tiktok.com/@richaadeb">richaadeb</a>
<a class="external-link" href="https://toyhou.se/ghastaboo">ghastaboo</a>
<a class="external-link" href="https://aeritus.tumblr.com/">aeritus</a>
<a class="external-link" href="https://vol5anthology.tumblr.com/post/159528808107/hey-everyone-its-413-and-that-means-we-have">vol5anthology</a>
<a class="external-link" href="https://www.tumblr.com/electricwestern">electricwestern</a>
<a class="external-link" href="https://www.tumblr.com/spellmynamewithabang/142767566733/happy-413-this-is-the-first-time-anyones-heard">Tumblr</a>
<a class="external-link" href="https://www.twitch.tv/ajhebard">ajhebard</a>
<a class="external-link" href="https://www.twitch.tv/vargskelethor/">vargskelethor/</a>
<a class="external-link" href="https://twitter.com/awkwarddoesart">awkwarddoesart</a>
<a class="external-link" href="https://twitter.com/purenonsens/">purenonsens</a>
<a class="external-link" href="https://twitter.com/circlejourney/status/1202265927183548416">Twitter</a>
<a class="external-link" href="https://web.archive.org/web/20120405160556/https://homestuck.bandcamp.com/album/colours-and-mayhem-universe-a">Wayback Machine</a>
<a class="external-link" href="https://web.archive.org/web/20160807111207/http://griffinspacejam.com:80/">Wayback Machine</a>
<a class="external-link" href="https://en.wikipedia.org/wiki/Haydn_Quartet_(vocal_ensemble)">Wikipedia</a>
<a class="external-link" href="https://youtube.com/@bani-chan8949">bani-chan8949</a>
<a class="external-link" href="https://www.youtube.com/@Razzie16">Razzie16</a>
<a class="external-link" href="https://www.youtube.com/channel/UCQXfvlKkpbOqEz4BepHqK7g">YouTube</a>
<a class="external-link" href="https://www.youtube.com/watch?v=6ekVnZm29kw">YouTube</a>
<a class="external-link" href="https://youtu.be/WBkC038wSio">YouTube</a>
<a class="external-link" href="https://www.youtube.com/playlist?list=PLy5UGIMKOXpONMExgI7lVYFwQa54QFp_H">YouTube</a>
`

exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: generic, style: platform 1`] = `
<a class="external-link" href="https://music.apple.com/us/artist/system-of-a-down/462715">Apple Music</a>
<a class="external-link" href="https://www.artstation.com/eevaningtea">ArtStation</a>
<a class="external-link" href="https://witnesstheabsurd.artstation.com/">ArtStation</a>
<a class="external-link" href="https://music.solatrus.com/">Bandcamp (music.solatrus.com)</a>
<a class="external-link" href="https://homestuck.bandcamp.com/">Bandcamp</a>
<a class="external-link" href="https://bsky.app/profile/jacobtheloofah.bsky.social">Bluesky</a>
<a class="external-link" href="https://aliceflare.carrd.co">Carrd</a>
<a class="external-link" href="https://bigchaslappa.carrd.co/">Carrd</a>
<a class="external-link" href="https://cohost.org/cosmoptera">Cohost</a>
<a class="external-link" href="https://music.deconreconstruction.com/albums/catch-322">MUSIC@DCRC</a>
<a class="external-link" href="https://music.deconreconstruction.com/albums/catch-322?track=arcjecs-theme">MUSIC@DCRC</a>
<a class="external-link" href="https://www.deconreconstruction.com/">Deconreconstruction</a>
<a class="external-link" href="https://culdhira.deviantart.com">DeviantArt</a>
<a class="external-link" href="https://www.deviantart.com/chesswanderlust-sama">DeviantArt</a>
<a class="external-link" href="https://www.deviantart.com/shilloshilloh/art/Homestuck-Jake-English-268874606">DeviantArt</a>
<a class="external-link" href="https://www.facebook.com/DoomedCloud/">Facebook</a>
<a class="external-link" href="https://www.facebook.com/pages/WoodenToaster/280642235307371">Facebook</a>
<a class="external-link" href="https://www.facebook.com/Svixy/posts/400018786702633">Facebook</a>
<a class="external-link" href="https://mspaintadventures.fandom.com/wiki/Draconian_Dignitary">MSPA Wiki (Draconian Dignitary)</a>
<a class="external-link" href="https://mspaintadventures.fandom.com/wiki/">MSPA Wiki</a>
<a class="external-link" href="https://mspaintadventures.fandom.com/">MSPA Wiki</a>
<a class="external-link" href="https://community.fandom.com/">Fandom</a>
<a class="external-link" href="https://community.fandom.com/wiki/">Fandom</a>
<a class="external-link" href="https://community.fandom.com/wiki/Community_Central">Fandom</a>
<a class="external-link" href="https://gamebanana.com/members/2028092">GameBanana</a>
<a class="external-link" href="https://gamebanana.com/mods/459476">GameBanana</a>
<a class="external-link" href="https://homestuck.com/">Homestuck</a>
<a class="external-link" href="https://hsmusic.wiki/media/misc/archive/Firefly%20Cloud%20Remix.mp3">HSMusic (wiki archive)</a>
<a class="external-link" href="https://hsmusic.wiki/feedback/">HSMusic</a>
<a class="external-link" href="https://archive.org/details/a-life-well-lived">Internet Archive</a>
<a class="external-link" href="https://archive.org/details/VastError_Volume1/11+Renaissance.mp3">Internet Archive</a>
<a class="external-link" href="https://instagram.com/bass.and.noises">Instagram</a>
<a class="external-link" href="https://www.instagram.com/levc_egm/">Instagram</a>
<a class="external-link" href="https://tuyoki.itch.io/">itch.io</a>
<a class="external-link" href="https://itch.io/profile/bravelittletoreador">itch.io</a>
<a class="external-link" href="https://ko-fi.com/gnaach">Ko-fi</a>
<a class="external-link" href="https://linktr.ee/bbpanzu">Linktree</a>
<a class="external-link" href="https://types.pl/">Mastodon (types.pl)</a>
<a class="external-link" href="https://canwc.mspfa.com/">MSPFA</a>
<a class="external-link" href="https://mspfa.com/?s=12003&p=1045">MSPFA</a>
<a class="external-link" href="https://mspfa.com/user/?u=103334508819793669241">MSPFA</a>
<a class="external-link" href="https://wodaro.neocities.org">Neocities</a>
<a class="external-link" href="https://neomints.neocities.org/">Neocities</a>
<a class="external-link" href="https://buzinkai.newgrounds.com/">Newgrounds</a>
<a class="external-link" href="https://www.newgrounds.com/audio/listen/1256058">Newgrounds</a>
<a class="external-link" href="https://www.patreon.com/CecilyRenns">Patreon</a>
<a class="external-link" href="https://www.poetryfoundation.org/poets/christina-rossetti">Poetry Foundation</a>
<a class="external-link" href="https://www.poetryfoundation.org/poems/45000/remember-56d224509b7ae">Poetry Foundation</a>
<a class="external-link" href="https://soundcloud.com/plazmataz">SoundCloud</a>
<a class="external-link" href="https://soundcloud.com/worthikids/1-i-accidentally-broke-my">SoundCloud</a>
<a class="external-link" href="https://open.spotify.com/artist/63SNNpNOicDzG3LY82G4q3">Spotify</a>
<a class="external-link" href="https://open.spotify.com/album/0iHvPD8rM3hQa0qeVtPQ3t">Spotify</a>
<a class="external-link" href="https://open.spotify.com/track/6YEGQH32aAXb9vQQbBrPlw">Spotify</a>
<a class="external-link" href="https://www.tiktok.com/@richaadeb">TikTok</a>
<a class="external-link" href="https://toyhou.se/ghastaboo">Toyhouse</a>
<a class="external-link" href="https://aeritus.tumblr.com/">Tumblr</a>
<a class="external-link" href="https://vol5anthology.tumblr.com/post/159528808107/hey-everyone-its-413-and-that-means-we-have">Tumblr</a>
<a class="external-link" href="https://www.tumblr.com/electricwestern">Tumblr</a>
<a class="external-link" href="https://www.tumblr.com/spellmynamewithabang/142767566733/happy-413-this-is-the-first-time-anyones-heard">Tumblr</a>
<a class="external-link" href="https://www.twitch.tv/ajhebard">Twitch</a>
<a class="external-link" href="https://www.twitch.tv/vargskelethor/">Twitch</a>
<a class="external-link" href="https://twitter.com/awkwarddoesart">Twitter</a>
<a class="external-link" href="https://twitter.com/purenonsens/">Twitter</a>
<a class="external-link" href="https://twitter.com/circlejourney/status/1202265927183548416">Twitter</a>
<a class="external-link" href="https://web.archive.org/web/20120405160556/https://homestuck.bandcamp.com/album/colours-and-mayhem-universe-a">Wayback Machine</a>
<a class="external-link" href="https://web.archive.org/web/20160807111207/http://griffinspacejam.com:80/">Wayback Machine</a>
<a class="external-link" href="https://en.wikipedia.org/wiki/Haydn_Quartet_(vocal_ensemble)">Wikipedia</a>
<a class="external-link" href="https://youtube.com/@bani-chan8949">YouTube</a>
<a class="external-link" href="https://www.youtube.com/@Razzie16">YouTube</a>
<a class="external-link" href="https://www.youtube.com/channel/UCQXfvlKkpbOqEz4BepHqK7g">YouTube</a>
<a class="external-link" href="https://www.youtube.com/watch?v=6ekVnZm29kw">YouTube</a>
<a class="external-link" href="https://youtu.be/WBkC038wSio">YouTube</a>
<a class="external-link" href="https://www.youtube.com/playlist?list=PLy5UGIMKOXpONMExgI7lVYFwQa54QFp_H">YouTube</a>
`

exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > unknown domain (arbitrary world wide web path) 1`] = `
<a class="external-link" href="https://snoo.ping.as/usual/i/see/">snoo.ping.as</a>
`