« get me outta code hell

generateCoverArtwork.js.test.cjs « snapshot « test « tap-snapshots - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/tap-snapshots/test/snapshot/generateCoverArtwork.js.test.cjs
blob: e080afaa4d4f8a2c9a3b66b99f446c37189ec45d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* IMPORTANT
 * This snapshot file is auto-generated, but designed for humans.
 * It should be checked into source control and tracked carefully.
 * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
 * Make sure to inspect the output below.  Do not ignore changes!
 */
'use strict'
exports[`test/snapshot/generateCoverArtwork.js > TAP > generateCoverArtwork (snapshot) > mode: commentary 1`] = `
[mocked: image
 args: [
   [
     { name: 'Damara', directory: 'damara', isContentWarning: false },
     { name: 'Cronus', directory: 'cronus', isContentWarning: false },
     { name: 'Bees', directory: 'bees', isContentWarning: false },
     { name: 'creepy crawlies', isContentWarning: true }
   ]
 ]
 slots: { path: [ 'media.albumCover', 'bee-forus-seatbelt-safebee', 'png' ], thumb: 'medium', reveal: true, link: true, lazy: true, square: true, attributes: { class: 'commentary-art' } }]
`

exports[`test/snapshot/generateCoverArtwork.js > TAP > generateCoverArtwork (snapshot) > mode: primary-artists 1`] = `
[mocked: image
 args: [
   [
     { name: 'Damara', directory: 'damara', isContentWarning: false },
     { name: 'Cronus', directory: 'cronus', isContentWarning: false },
     { name: 'Bees', directory: 'bees', isContentWarning: false },
     { name: 'creepy crawlies', isContentWarning: true }
   ]
 ]
 slots: { path: [ 'media.albumCover', 'bee-forus-seatbelt-safebee', 'png' ], thumb: 'medium', reveal: true, link: true, square: true }]
<p class="image-details illustrator-details">
    Artwork by [mocked: linkArtistGallery
     args: [ { name: 'Circlejourney', directory: 'circlejourney' } ]
     slots: {}] and [mocked: linkArtistGallery
     args: [ { name: 'magnoliajades', directory: 'magnoliajades' } ]
     slots: {}]
</p>
`

exports[`test/snapshot/generateCoverArtwork.js > TAP > generateCoverArtwork (snapshot) > mode: primary-tags 1`] = `
[mocked: image
 args: [
   [
     { name: 'Damara', directory: 'damara', isContentWarning: false },
     { name: 'Cronus', directory: 'cronus', isContentWarning: false },
     { name: 'Bees', directory: 'bees', isContentWarning: false },
     { name: 'creepy crawlies', isContentWarning: true }
   ]
 ]
 slots: { path: [ 'media.albumCover', 'bee-forus-seatbelt-safebee', 'png' ], thumb: 'medium', reveal: true, link: true, square: true }]
<ul class="image-details art-tag-details">
    <li><a href="tag/damara/">Damara</a></li>
    <li><a href="tag/cronus/">Cronus</a></li>
    <li><a href="tag/bees/">Bees</a></li>
</ul>
`

exports[`test/snapshot/generateCoverArtwork.js > TAP > generateCoverArtwork (snapshot) > mode: thumbnail 1`] = `
[mocked: image
 args: [
   [
     { name: 'Damara', directory: 'damara', isContentWarning: false },
     { name: 'Cronus', directory: 'cronus', isContentWarning: false },
     { name: 'Bees', directory: 'bees', isContentWarning: false },
     { name: 'creepy crawlies', isContentWarning: true }
   ]
 ]
 slots: { path: [ 'media.albumCover', 'bee-forus-seatbelt-safebee', 'png' ], thumb: 'small', reveal: false, link: false, square: true }]
`