diff options
-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], }; |