diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-04-24 15:56:43 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-05-01 07:06:06 -0300 |
commit | 4901d91fe55ec838c5f38d794d62bb9108496399 (patch) | |
tree | bd58b695e77068c1f2174de7bc12241fe22cbeb3 | |
parent | a10d7530bb9253e08e32b9a1b1ac3fb2ed15685d (diff) |
test: update generateAlbumSecondaryNav (snapshot)
-rw-r--r-- | tap-snapshots/test/snapshot/generateAlbumSecondaryNav.js.test.cjs | 12 | ||||
-rw-r--r-- | test/snapshot/generateAlbumSecondaryNav.js | 2 |
2 files changed, 8 insertions, 6 deletions
diff --git a/tap-snapshots/test/snapshot/generateAlbumSecondaryNav.js.test.cjs b/tap-snapshots/test/snapshot/generateAlbumSecondaryNav.js.test.cjs index f2b51cb5..de35048c 100644 --- a/tap-snapshots/test/snapshot/generateAlbumSecondaryNav.js.test.cjs +++ b/tap-snapshots/test/snapshot/generateAlbumSecondaryNav.js.test.cjs @@ -7,11 +7,11 @@ 'use strict' exports[`test/snapshot/generateAlbumSecondaryNav.js > TAP > generateAlbumSecondaryNav (snapshot) > basic behavior, mode: album 1`] = ` <nav id="secondary-nav" class="nav-links-groups"> - <span style="--primary-color: #abcdef"> + <span class="nav-link" style="--primary-color: #abcdef"> <a href="group/vcg/">VCG</a> (<a title="First" href="album/first/">Previous</a>, <a title="Last" href="album/last/">Next</a>) </span> - <span style="--primary-color: #123456"> + <span class="nav-link" style="--primary-color: #123456"> <a href="group/bepis/">Bepis</a> (<a title="Second" href="album/second/">Next</a>) </span> @@ -20,14 +20,14 @@ exports[`test/snapshot/generateAlbumSecondaryNav.js > TAP > generateAlbumSeconda exports[`test/snapshot/generateAlbumSecondaryNav.js > TAP > generateAlbumSecondaryNav (snapshot) > basic behavior, mode: track 1`] = ` <nav id="secondary-nav" class="nav-links-groups"> - <a style="--primary-color: #abcdef" href="group/vcg/">VCG</a> - <a style="--primary-color: #123456" href="group/bepis/">Bepis</a> + <span class="nav-link" style="--primary-color: #abcdef"><a href="group/vcg/">VCG</a></span> + <span class="nav-link" style="--primary-color: #123456"><a href="group/bepis/">Bepis</a></span> </nav> ` exports[`test/snapshot/generateAlbumSecondaryNav.js > TAP > generateAlbumSecondaryNav (snapshot) > dateless album in mixed group 1`] = ` <nav id="secondary-nav" class="nav-links-groups"> - <a style="--primary-color: #abcdef" href="group/vcg/">VCG</a> - <a style="--primary-color: #123456" href="group/bepis/">Bepis</a> + <span class="nav-link" style="--primary-color: #abcdef"><a href="group/vcg/">VCG</a></span> + <span class="nav-link" style="--primary-color: #123456"><a href="group/bepis/">Bepis</a></span> </nav> ` diff --git a/test/snapshot/generateAlbumSecondaryNav.js b/test/snapshot/generateAlbumSecondaryNav.js index 709b062e..57618f2f 100644 --- a/test/snapshot/generateAlbumSecondaryNav.js +++ b/test/snapshot/generateAlbumSecondaryNav.js @@ -10,6 +10,8 @@ testContentFunctions(t, 'generateAlbumSecondaryNav (snapshot)', async (t, evalua group2 = {name: 'Bepis', directory: 'bepis', color: '#123456'}; album = { + name: 'Album', + directory: 'album', date: new Date('2010-04-13'), groups: [group1, group2], }; |