@@ -84,6 +84,56 @@ describe('release types', () => {
8484 title ,
8585 new Set ( [ 'Soundtrack' ] ) ,
8686 ] ) ) ,
87+ // Remix releases
88+ ...( [
89+ 'Human (Paul Woolford Remix)' ,
90+ 'Paper Romance (Purple Disco Machine Remix - Edit)' ,
91+ 'Paper Romance (Purple Disco Machine Remix) [Edit]' ,
92+ 'Paper Romance (Purple Disco Machine Remix) (Edit)' ,
93+ 'Paper Romance (Purple Disco Machine Remix; Edit)' ,
94+ "Stay (Don't Go Away) [feat. Raye] [Nicky Romero Remix]" ,
95+ 'Anti‐Hero (Kungs remix extended version)' ,
96+ 'Remix' ,
97+ 'Anti‐Hero (Remixes)' ,
98+ 'The One (feat. Daddy Yankee) [The Remixes]' ,
99+ 'The Remixes' ,
100+ 'The Remixes - Vol.1' ,
101+ 'The Remixes, Pt. 1' ,
102+ 'Remixes' ,
103+ 'Remixes 81>04' ,
104+ 'Never Say Never - The Remixes' ,
105+ 'Skin: The Remixes' ,
106+ 'The Hills Remixes' ,
107+ 'MIDI Kittyy - The Remixes Vol 1' ,
108+ 'The Slow Rush B-Sides & Remixes' ,
109+ 'Remixed' ,
110+ 'Remixed (2003 Remaster)' ,
111+ 'Remixed Sides' ,
112+ 'Remixed: The Definitive Collection' ,
113+ 'The Hits: Remixed' ,
114+ 'Remixed & Revisited' ,
115+ 'Revived Remixed Revisited' ,
116+ 'Welcome To My World (Remixed)' ,
117+ 'Mörkrets Narr Remixed' ,
118+ ] . map ( (
119+ title ,
120+ ) : FunctionSpec < typeof guessTypesFromTitle > [ number ] => [
121+ `should detect remix type (${ title } )` ,
122+ title ,
123+ new Set ( [ 'Remix' ] ) ,
124+ ] ) ) ,
125+ [ 'should not treat a premix as remix' , 'Wild (premix version)' , new Set ( ) ] ,
126+ // Multiple types
127+ [
128+ 'should detect both remix and soundtrack type' ,
129+ 'The Sims 2: Nightlife (Remixes) (Original Soundtrack)' ,
130+ new Set ( [ 'Remix' , 'Soundtrack' ] ) ,
131+ ] ,
132+ [
133+ 'should detect both remix and soundtrack type' ,
134+ 'Remixes - EP' ,
135+ new Set ( [ 'EP' , 'Remix' ] ) ,
136+ ] ,
87137 ] ;
88138
89139 const passingCaseSensitiveCases : FunctionSpec < typeof guessTypesFromTitle > = [
0 commit comments