« get me outta code hell

generateAlbumTrackList.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/generateAlbumTrackList.js.test.cjs
blob: d3702e65d06f5160deb7598805e944eb06395d9e (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
/* 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/generateAlbumTrackList.js > TAP > generateAlbumTrackList (snapshot) > basic behavior, default track section 1`] = `
<ul>
    <li>(0:20) <a href="track/t1/">Track 1</a></li>
    <li>(0:30) <a href="track/t2/">Track 2</a></li>
    <li>(0:40) <a href="track/t3/">Track 3</a></li>
    <li style="--primary-color: #ea2e83">(0:05) <a href="track/t4/">Track 4</a> <span class="by">by <a href="artist/apricot/">Apricot</a> and <a href="artist/peach/">Peach</a></span></li>
</ul>
`

exports[`test/snapshot/generateAlbumTrackList.js > TAP > generateAlbumTrackList (snapshot) > basic behavior, with track sections 1`] = `
<dl class="album-group-list">
    <dt class="content-heading" tabindex="0"><span class="content-heading-main-title">First section (~1:30):</span></dt>
    <dd>
        <ul>
            <li>(0:20) <a href="track/t1/">Track 1</a></li>
            <li>(0:30) <a href="track/t2/">Track 2</a></li>
            <li>(0:40) <a href="track/t3/">Track 3</a></li>
        </ul>
    </dd>
    <dt class="content-heading" tabindex="0"><span class="content-heading-main-title">Second section (0:05):</span></dt>
    <dd><ul><li style="--primary-color: #ea2e83">(0:05) <a href="track/t4/">Track 4</a> <span class="by">by <a href="artist/apricot/">Apricot</a> and <a href="artist/peach/">Peach</a></span></li></ul></dd>
</dl>
`