From ce78499e4d2b8f75a75c61335e0c18d3ea71fa1e Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 19 Nov 2024 16:05:13 -0400 Subject: test: remove generate{Album,Track,}CoverArtwork snapshots --- test/snapshot/generateTrackCoverArtwork.js | 70 ------------------------------ 1 file changed, 70 deletions(-) delete mode 100644 test/snapshot/generateTrackCoverArtwork.js (limited to 'test/snapshot/generateTrackCoverArtwork.js') 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'}, - }); -}); -- cgit 1.3.0-6-gf8a5