« get me outta code hell

test: generateAlbumTrackList (snapshot, unit) - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/tap-snapshots/test
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-06-24 17:41:24 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-06-24 17:41:24 -0300
commit324b74cef03ca5f21e938ed3bb9a43e564b377fa (patch)
tree9746b8d31739a379dd7a49effb06e09c3b9bd8a5 /tap-snapshots/test
parent47d504251c084e601b946866e572519b2612b13c (diff)
test: generateAlbumTrackList (snapshot, unit)
Diffstat (limited to 'tap-snapshots/test')
-rw-r--r--tap-snapshots/test/snapshot/generateAlbumTrackList.js.test.cjs30
1 files changed, 30 insertions, 0 deletions
diff --git a/tap-snapshots/test/snapshot/generateAlbumTrackList.js.test.cjs b/tap-snapshots/test/snapshot/generateAlbumTrackList.js.test.cjs
new file mode 100644
index 00000000..14316988
--- /dev/null
+++ b/tap-snapshots/test/snapshot/generateAlbumTrackList.js.test.cjs
@@ -0,0 +1,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>Item: Track 1</li>
+    <li>Item: Track 2</li>
+    <li>Item: Track 3</li>
+    <li>Item: Track 4</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">First section (~1:30):</dt>
+    <dd>
+        <ul>
+            <li>Item: Track 1</li>
+            <li>Item: Track 2</li>
+            <li>Item: Track 3</li>
+        </ul>
+    </dd>
+    <dt class="content-heading" tabindex="0">Second section (0:05):</dt>
+    <dd><ul><li>Item: Track 4</li></ul></dd>
+</dl>
+`