« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/snapshot/generateAlbumCoverArtwork.js8
-rw-r--r--test/snapshot/generateTrackCoverArtwork.js15
2 files changed, 17 insertions, 6 deletions
diff --git a/test/snapshot/generateAlbumCoverArtwork.js b/test/snapshot/generateAlbumCoverArtwork.js
index 939c6e19..52b4f9bb 100644
--- a/test/snapshot/generateAlbumCoverArtwork.js
+++ b/test/snapshot/generateAlbumCoverArtwork.js
@@ -21,12 +21,16 @@ testContentFunctions(t, 'generateAlbumCoverArtwork (snapshot)', async (t, evalua
       {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', {
+  evaluate.snapshot('display: primary-tags', {
     name: 'generateAlbumCoverArtwork',
     args: [album],
-    slots: {mode: 'primary'},
+    slots: {mode: 'primary-tags'},
   });
 
   evaluate.snapshot('display: thumbnail', {
diff --git a/test/snapshot/generateTrackCoverArtwork.js b/test/snapshot/generateTrackCoverArtwork.js
index 4d952119..8f6ce772 100644
--- a/test/snapshot/generateTrackCoverArtwork.js
+++ b/test/snapshot/generateTrackCoverArtwork.js
@@ -18,6 +18,10 @@ testContentFunctions(t, 'generateTrackCoverArtwork (snapshot)', async (t, evalua
       {name: 'Bees', directory: 'bees', isContentWarning: false},
       {name: 'creepy crawlies', isContentWarning: true},
     ],
+    coverArtistContribs: [
+      {artist: {name: 'Circlejourney', directory: 'circlejourney'}},
+      {artist: {name: 'magnoliajades', directory: 'magnoliajades'}},
+    ],
   };
 
   const track1 = {
@@ -27,6 +31,9 @@ testContentFunctions(t, 'generateTrackCoverArtwork (snapshot)', async (t, evalua
     coverArtDimensions: null,
     color: '#f28514',
     artTags: [{name: 'Bees', directory: 'bees', isContentWarning: false}],
+    coverArtistContribs: [
+      {artist: {name: 'Circlejourney', directory: 'circlejourney'}},
+    ],
     album,
   };
 
@@ -37,10 +44,10 @@ testContentFunctions(t, 'generateTrackCoverArtwork (snapshot)', async (t, evalua
     album,
   };
 
-  evaluate.snapshot('display: primary - unique art', {
+  evaluate.snapshot('display: primary-tags - unique art', {
     name: 'generateTrackCoverArtwork',
     args: [track1],
-    slots: {mode: 'primary'},
+    slots: {mode: 'primary-tags'},
   });
 
   evaluate.snapshot('display: thumbnail - unique art', {
@@ -49,10 +56,10 @@ testContentFunctions(t, 'generateTrackCoverArtwork (snapshot)', async (t, evalua
     slots: {mode: 'thumbnail'},
   });
 
-  evaluate.snapshot('display: primary - no unique art', {
+  evaluate.snapshot('display: primary-tags - no unique art', {
     name: 'generateTrackCoverArtwork',
     args: [track2],
-    slots: {mode: 'primary'},
+    slots: {mode: 'primary-tags'},
   });
 
   evaluate.snapshot('display: thumbnail - no unique art', {