1234567891011121314151617181920212223242526272829303132333435363738 |
- 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},
- ],
- };
- evaluate.snapshot('display: primary', {
- name: 'generateAlbumCoverArtwork',
- args: [album],
- slots: {mode: 'primary'},
- });
- evaluate.snapshot('display: thumbnail', {
- name: 'generateAlbumCoverArtwork',
- args: [album],
- slots: {mode: 'thumbnail'},
- });
- });
|