« 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
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
parentc31d38c4778e51fb90958c40af93519661538889 (diff)
test: remove generate{Album,Track,}CoverArtwork snapshots
Diffstat (limited to 'test/snapshot')
-rw-r--r--test/snapshot/generateAlbumCoverArtwork.js41
-rw-r--r--test/snapshot/generateCoverArtwork.js37
-rw-r--r--test/snapshot/generateTrackCoverArtwork.js70
3 files changed, 0 insertions, 148 deletions
diff --git a/test/snapshot/generateAlbumCoverArtwork.js b/test/snapshot/generateAlbumCoverArtwork.js
deleted file mode 100644
index 52b4f9bb..00000000
--- a/test/snapshot/generateAlbumCoverArtwork.js
+++ /dev/null
@@ -1,41 +0,0 @@
-import t from 'tap';
-
-import contentFunction from '#content-function';
-import {testContentFunctions} from '#test-lib';
-
-testContentFunctions(t, 'generateAlbumCoverArtwork (snapshot)', async (t, evaluate) => {
-  await evaluate.load({
-    mock: {
-      image: evaluate.stubContentFunction('image'),
-    },
-  });
-
-  const album = {
-    directory: 'bee-forus-seatbelt-safebee',
-    coverArtFileExtension: 'png',
-    coverArtDimensions: [400, 300],
-    color: '#f28514',
-    artTags: [
-      {name: 'Damara', directory: 'damara', isContentWarning: false},
-      {name: 'Cronus', directory: 'cronus', isContentWarning: false},
-      {name: 'Bees', directory: 'bees', isContentWarning: false},
-      {name: 'creepy crawlies', isContentWarning: true},
-    ],
-    coverArtistContribs: [
-      {artist: {name: 'Circlejourney', directory: 'circlejourney'}},
-      {artist: {name: 'magnoliajades', directory: 'magnoliajades'}},
-    ],
-  };
-
-  evaluate.snapshot('display: primary-tags', {
-    name: 'generateAlbumCoverArtwork',
-    args: [album],
-    slots: {mode: 'primary-tags'},
-  });
-
-  evaluate.snapshot('display: thumbnail', {
-    name: 'generateAlbumCoverArtwork',
-    args: [album],
-    slots: {mode: 'thumbnail'},
-  });
-});
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');
-});
diff --git a/test/snapshot/generateTrackCoverArtwork.js b/test/snapshot/generateTrackCoverArtwork.js
deleted file mode 100644
index 8f6ce772..00000000
--- a/test/snapshot/generateTrackCoverArtwork.js
+++ /dev/null
@@ -1,70 +0,0 @@
-import t from 'tap';
-import {testContentFunctions} from '#test-lib';
-
-testContentFunctions(t, 'generateTrackCoverArtwork (snapshot)', async (t, evaluate) => {
-  await evaluate.load({
-    mock: {
-      image: evaluate.stubContentFunction('image'),
-    },
-  });
-
-  const album = {
-    directory: 'bee-forus-seatbelt-safebee',
-    coverArtFileExtension: 'png',
-    coverArtDimensions: [400, 300],
-    artTags: [
-      {name: 'Damara', directory: 'damara', isContentWarning: false},
-      {name: 'Cronus', directory: 'cronus', isContentWarning: false},
-      {name: 'Bees', directory: 'bees', isContentWarning: false},
-      {name: 'creepy crawlies', isContentWarning: true},
-    ],
-    coverArtistContribs: [
-      {artist: {name: 'Circlejourney', directory: 'circlejourney'}},
-      {artist: {name: 'magnoliajades', directory: 'magnoliajades'}},
-    ],
-  };
-
-  const track1 = {
-    directory: 'beesmp3',
-    hasUniqueCoverArt: true,
-    coverArtFileExtension: 'jpg',
-    coverArtDimensions: null,
-    color: '#f28514',
-    artTags: [{name: 'Bees', directory: 'bees', isContentWarning: false}],
-    coverArtistContribs: [
-      {artist: {name: 'Circlejourney', directory: 'circlejourney'}},
-    ],
-    album,
-  };
-
-  const track2 = {
-    directory: 'fake-bonus-track',
-    hasUniqueCoverArt: false,
-    color: '#abcdef',
-    album,
-  };
-
-  evaluate.snapshot('display: primary-tags - unique art', {
-    name: 'generateTrackCoverArtwork',
-    args: [track1],
-    slots: {mode: 'primary-tags'},
-  });
-
-  evaluate.snapshot('display: thumbnail - unique art', {
-    name: 'generateTrackCoverArtwork',
-    args: [track1],
-    slots: {mode: 'thumbnail'},
-  });
-
-  evaluate.snapshot('display: primary-tags - no unique art', {
-    name: 'generateTrackCoverArtwork',
-    args: [track2],
-    slots: {mode: 'primary-tags'},
-  });
-
-  evaluate.snapshot('display: thumbnail - no unique art', {
-    name: 'generateTrackCoverArtwork',
-    args: [track2],
-    slots: {mode: 'thumbnail'},
-  });
-});