From 36e71fe735c13f452afdc5cd7b75fecedf27dab6 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 19 Nov 2024 09:42:31 -0400 Subject: test: update generate{Album,Track}CoverArtwork (snapshot) These are shittier updated tests because we're meaning to restructure how generateCoverArtwork works to begin with, very shortly. --- test/snapshot/generateTrackCoverArtwork.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'test/snapshot/generateTrackCoverArtwork.js') 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', { -- cgit 1.3.0-6-gf8a5