123456789101112131415161718192021222324252627282930313233343536 |
- 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',
- artTags: [
- {name: 'Damara', directory: 'damara', isContentWarning: false},
- {name: 'Cronus', directory: 'cronus', isContentWarning: false},
- {name: 'Bees', directory: 'bees', isContentWarning: false},
- {name: 'creepy crawlies', isContentWarning: true},
- ],
- };
- evaluate.snapshot('display: primary', {
- name: 'generateAlbumCoverArtwork',
- args: [album],
- slots: {mode: 'primary'},
- });
- evaluate.snapshot('display: thumbnail', {
- name: 'generateAlbumCoverArtwork',
- args: [album],
- slots: {mode: 'thumbnail'},
- });
- });
|