diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-04-04 11:56:21 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-04-04 11:56:21 -0300 |
commit | 10485c6dda37017f0a82ba7f2f52ecd5b59df091 (patch) | |
tree | 16d77de4c3d8a0ad8a40f3c7a6e8fc8da24796c7 | |
parent | a3859afacb0054b30752d5eec802cdd558ac93b7 (diff) |
test: update generateAlbumAdditionalFilesList (snapshot)
-rw-r--r-- | tap-snapshots/test/snapshot/generateAlbumAdditionalFilesList.js.test.cjs | 13 | ||||
-rw-r--r-- | test/snapshot/generateAlbumAdditionalFilesList.js | 6 |
2 files changed, 14 insertions, 5 deletions
diff --git a/tap-snapshots/test/snapshot/generateAlbumAdditionalFilesList.js.test.cjs b/tap-snapshots/test/snapshot/generateAlbumAdditionalFilesList.js.test.cjs index b1ba23c1..d8f1e974 100644 --- a/tap-snapshots/test/snapshot/generateAlbumAdditionalFilesList.js.test.cjs +++ b/tap-snapshots/test/snapshot/generateAlbumAdditionalFilesList.js.test.cjs @@ -19,8 +19,9 @@ exports[`test/snapshot/generateAlbumAdditionalFilesList.js > TAP > generateAlbum </li> <li> <details> - <summary><span><span class="group-name">Fake Section</span>: No sizes for these files</span></summary> + <summary><span><span class="group-name">Fake Section</span></span></summary> <ul> + <li class="entry-description">No sizes for these files</li> <li><a href="media/album-additional/exciting-album/oops.mp3">oops.mp3</a></li> <li><a href="media/album-additional/exciting-album/Internet%20Explorer.gif">Internet Explorer.gif</a></li> <li><a href="media/album-additional/exciting-album/daisy.mp3">daisy.mp3</a></li> @@ -29,14 +30,18 @@ exports[`test/snapshot/generateAlbumAdditionalFilesList.js > TAP > generateAlbum </li> <li> <details open> - <summary><span><span class="group-name">Empty Section</span>: These files haven't been made available.</span></summary> - <ul><li>There are no files available or listed for this entry.</li></ul> + <summary><span><span class="group-name">Empty Section</span></span></summary> + <ul> + <li class="entry-description">These files haven't been made available.</li> + <li>There are no files available or listed for this entry.</li> + </ul> </details> </li> <li> <details> - <summary><span><span class="group-name">Alternate Covers</span>: This is just an example description.</span></summary> + <summary><span><span class="group-name">Alternate Covers</span></span></summary> <ul> + <li class="entry-description">This is just an example description.</li> <li><a href="media/album-additional/exciting-album/Homestuck_Vol4_alt1.jpg">Homestuck_Vol4_alt1.jpg</a></li> <li><a href="media/album-additional/exciting-album/Homestuck_Vol4_alt2.jpg">Homestuck_Vol4_alt2.jpg</a></li> <li><a href="media/album-additional/exciting-album/Homestuck_Vol4_alt3.jpg">Homestuck_Vol4_alt3.jpg</a></li> diff --git a/test/snapshot/generateAlbumAdditionalFilesList.js b/test/snapshot/generateAlbumAdditionalFilesList.js index 70a5c0d2..c25e5682 100644 --- a/test/snapshot/generateAlbumAdditionalFilesList.js +++ b/test/snapshot/generateAlbumAdditionalFilesList.js @@ -23,7 +23,11 @@ testContentFunctions(t, 'generateAlbumAdditionalFilesList (snapshot)', async (t, ?.at(1) ?? null, }; - await evaluate.load(); + await evaluate.load({ + mock: { + image: evaluate.stubContentFunction('image'), + }, + }); const album = new Album(); album.directory = 'exciting-album'; |