@@ -64,9 +64,6 @@ describe('release types', () => {
6464 'EUPHORIA SEASON 2 OFFICIAL SCORE (FROM THE HBO ORIGINAL SERIES)' ,
6565 'The Bible (Official Score Soundtrack)' ,
6666 'The Good Wife (The Official TV Score)' ,
67- // Releases with OST abbreviation
68- 'O.S.T. Das Boot' ,
69- 'Alvin & The Chipmunks / OST' ,
7067 // German release titles
7168 'Get Up (Der Original Soundtrack zum Kinofilm)' ,
7269 'Ein Mädchen namens Willow - Soundtrack zum Film' ,
@@ -83,14 +80,29 @@ describe('release types', () => {
8380 ] . map ( (
8481 title ,
8582 ) : FunctionSpec < typeof guessTypesFromTitle > [ number ] => [
86- 'should detect soundtrack type' ,
83+ `should detect soundtrack type (${ title } )` ,
84+ title ,
85+ new Set ( [ 'Soundtrack' ] ) ,
86+ ] ) ) ,
87+ ] ;
88+
89+ const passingCaseSensitiveCases : FunctionSpec < typeof guessTypesFromTitle > = [
90+ // Soundtrack releases
91+ ...( [
92+ // Releases with OST abbreviation
93+ 'O.S.T. Das Boot' ,
94+ 'Alvin & The Chipmunks / OST' ,
95+ ] . map ( (
96+ title ,
97+ ) : FunctionSpec < typeof guessTypesFromTitle > [ number ] => [
98+ `should detect soundtrack type (${ title } )` ,
8799 title ,
88100 new Set ( [ 'Soundtrack' ] ) ,
89101 ] ) ) ,
90102 ] ;
91103
92104 describe ( 'exact case match' , ( ) => {
93- passingCases . forEach ( ( [ description , input , expected ] ) => {
105+ [ ... passingCases , ... passingCaseSensitiveCases ] . forEach ( ( [ description , input , expected ] ) => {
94106 it ( description , ( ) => {
95107 assertEquals ( guessTypesFromTitle ( input ) , expected ) ;
96108 } ) ;
0 commit comments