« get me outta code hell

test: remove generate{Album,Track,}CoverArtwork snapshots - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test/snapshot/generateCoverArtwork.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-11-19 16:05:13 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-11-19 16:05:43 -0400
commitce78499e4d2b8f75a75c61335e0c18d3ea71fa1e (patch)
tree8734632560f7ddc94f412b0d7174437fdf2ac409 /test/snapshot/generateCoverArtwork.js
parentc31d38c4778e51fb90958c40af93519661538889 (diff)
test: remove generate{Album,Track,}CoverArtwork snapshots
Diffstat (limited to 'test/snapshot/generateCoverArtwork.js')
-rw-r--r--test/snapshot/generateCoverArtwork.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/test/snapshot/generateCoverArtwork.js b/test/snapshot/generateCoverArtwork.js
deleted file mode 100644
index c2a89557..00000000
--- a/test/snapshot/generateCoverArtwork.js
+++ /dev/null
@@ -1,37 +0,0 @@
-import t from 'tap';
-import {testContentFunctions} from '#test-lib';
-
-testContentFunctions(t, 'generateCoverArtwork (snapshot)', async (t, evaluate) => {
-  await evaluate.load({
-    mock: {
-      image: evaluate.stubContentFunction('image', {mock: true}),
-      linkArtistGallery: evaluate.stubContentFunction('linkArtistGallery', {mock: true}),
-    },
-  });
-
-  const artTags = [
-    {name: 'Damara', directory: 'damara', isContentWarning: false},
-    {name: 'Cronus', directory: 'cronus', isContentWarning: false},
-    {name: 'Bees', directory: 'bees', isContentWarning: false},
-    {name: 'creepy crawlies', isContentWarning: true},
-  ];
-
-  const coverArtistContribs = [
-    {artist: {name: 'Circlejourney', directory: 'circlejourney'}},
-    {artist: {name: 'magnoliajades', directory: 'magnoliajades'}},
-  ];
-
-  const path = ['media.albumCover', 'bee-forus-seatbelt-safebee', 'png'];
-
-  const quickSnapshot = (mode) =>
-    evaluate.snapshot(`mode: ${mode}`, {
-      name: 'generateCoverArtwork',
-      args: [artTags, coverArtistContribs],
-      slots: {path, mode},
-    });
-
-  quickSnapshot('primary-tags');
-  quickSnapshot('primary-artists');
-  quickSnapshot('thumbnail');
-  quickSnapshot('commentary');
-});