« get me outta code hell

test: generateAlbumSecondaryNav (snapshot) - 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-15 17:22:04 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-06-15 17:22:12 -0300
commitfc5c3f4e66660018e835ab0f3b664ef0d6abe2ef (patch)
treef076cdb5b3c16c255efd9481afdd41cba51c7a1c /tap-snapshots/test
parent470536c0ead771976e6b8771930eabb8030081c4 (diff)
test: generateAlbumSecondaryNav (snapshot)
Diffstat (limited to 'tap-snapshots/test')
-rw-r--r--tap-snapshots/test/snapshot/generateAlbumSecondaryNav.js.test.cjs33
1 files changed, 33 insertions, 0 deletions
diff --git a/tap-snapshots/test/snapshot/generateAlbumSecondaryNav.js.test.cjs b/tap-snapshots/test/snapshot/generateAlbumSecondaryNav.js.test.cjs
new file mode 100644
index 00000000..f84827ae
--- /dev/null
+++ b/tap-snapshots/test/snapshot/generateAlbumSecondaryNav.js.test.cjs
@@ -0,0 +1,33 @@
+/* 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/generateAlbumSecondaryNav.js TAP generateAlbumSecondaryNav (snapshot) > basic behavior, mode: album 1`] = `
+<nav id="secondary-nav" class="nav-links-groups">
+    <span>
+        <a href="group/vcg/">VCG</a>
+        (<a href="album/first/">Previous</a>, <a href="album/last/">Next</a>)
+    </span>
+    <span>
+        <a href="group/bepis/">Bepis</a>
+        (<a href="album/second/">Next</a>)
+    </span>
+</nav>
+`
+
+exports[`test/snapshot/generateAlbumSecondaryNav.js TAP generateAlbumSecondaryNav (snapshot) > basic behavior, mode: track 1`] = `
+<nav id="secondary-nav" class="nav-links-groups">
+    <a href="group/vcg/">VCG</a>
+    <a href="group/bepis/">Bepis</a>
+</nav>
+`
+
+exports[`test/snapshot/generateAlbumSecondaryNav.js TAP generateAlbumSecondaryNav (snapshot) > dateless album in mixed group 1`] = `
+<nav id="secondary-nav" class="nav-links-groups">
+    <a href="group/vcg/">VCG</a>
+    <a href="group/bepis/">Bepis</a>
+</nav>
+`