@@ -6,6 +6,9 @@ testContentFunctions(t, 'generateAlbumTrackList (snapshot)', async (t, evaluate)
6
6
mock : {
7
7
generateAlbumTrackListMissingDuration :
8
8
evaluate . stubContentFunction ( 'generateAlbumTrackListMissingDuration' ) ,
9
+
10
+ image :
11
+ evaluate . stubContentFunction ( 'image' ) ,
9
12
} ,
10
13
} ) ;
11
14
@@ -46,6 +49,16 @@ testContentFunctions(t, 'generateAlbumTrackList (snapshot)', async (t, evaluate)
46
49
tracks,
47
50
} ;
48
51
52
+ const albumWithTrackSectionDescriptions = {
53
+ color : color1 ,
54
+ artistContribs : contribs1 ,
55
+ trackSections : [
56
+ { name : 'First section' , tracks : tracks . slice ( 0 , 3 ) , description : `Why yes!` } ,
57
+ { name : 'Second section' , tracks : tracks . slice ( 3 ) , description : `How *contentful,* this is.` } ,
58
+ ] ,
59
+ tracks,
60
+ } ;
61
+
49
62
const albumWithNoDuration = {
50
63
color : color1 ,
51
64
artistContribs : contribs1 ,
@@ -63,6 +76,11 @@ testContentFunctions(t, 'generateAlbumTrackList (snapshot)', async (t, evaluate)
63
76
args : [ albumWithoutTrackSections ] ,
64
77
} ) ;
65
78
79
+ evaluate . snapshot ( `basic behavior, with descriptions` , {
80
+ name : 'generateAlbumTrackList' ,
81
+ args : [ albumWithTrackSectionDescriptions ] ,
82
+ } ) ;
83
+
66
84
evaluate . snapshot ( `collapseDurationScope: never` , {
67
85
name : 'generateAlbumTrackList' ,
68
86
slots : { collapseDurationScope : 'never' } ,
0 commit comments