@@ -19,7 +19,7 @@ interface ModificationTestCase {
1919}
2020
2121const getPathToFixture = ( fileName : string ) => resolve ( __dirname , `__fixtures__/downloaded/${ fileName } ` ) ;
22- const testCases : ModificationTestCase [ ] = [
22+ const patchTestCases : ModificationTestCase [ ] = [
2323 {
2424 ModificationClass : DefaultPageLayoutModification ,
2525 fileUrl :
@@ -43,6 +43,9 @@ const testCases: ModificationTestCase[] = [
4343 fileUrl : 'https://github.com/unraid/webgui/raw/refs/heads/master/emhttp/auth-request.php' ,
4444 fileName : 'auth-request.php' ,
4545 } ,
46+ ] ;
47+
48+ const simpleTestCases : ModificationTestCase [ ] = [
4649 {
4750 ModificationClass : LogRotateModification ,
4851 fileUrl : 'logrotate.conf' ,
@@ -131,16 +134,24 @@ async function testInvalidModification(testCase: ModificationTestCase, patcher:
131134 await patcher . rollback ( ) ;
132135}
133136
137+ const allTestCases = [ ...patchTestCases , ...simpleTestCases ] ;
138+
134139describe ( 'File modifications' , ( ) => {
135140 let patcher : FileModification ;
136141
137- test . each ( testCases ) ( `$fileName modifier correctly applies to fresh install` , async ( testCase ) => {
138- await testModification ( testCase , patcher ) ;
139- } ) ;
142+ test . each ( allTestCases ) (
143+ `$fileName modifier correctly applies to fresh install` ,
144+ async ( testCase ) => {
145+ await testModification ( testCase , patcher ) ;
146+ }
147+ ) ;
140148
141- test . each ( testCases ) ( `$fileName modifier correctly handles invalid content` , async ( testCase ) => {
142- await testInvalidModification ( testCase , patcher ) ;
143- } ) ;
149+ test . each ( patchTestCases ) (
150+ `$fileName modifier correctly handles invalid content` ,
151+ async ( testCase ) => {
152+ await testInvalidModification ( testCase , patcher ) ;
153+ }
154+ ) ;
144155
145156 afterEach ( async ( ) => {
146157 await patcher ?. rollback ( ) ;
0 commit comments