@@ -21,23 +21,31 @@ describe('basic getSolidaritySettings', () => {
2121    } ) 
2222  } ) 
2323
24-   // describe('w/ failure', () => { 
25-   //   test('getSolidaritySettings can fail', async () => { 
26-   //     await expect(async () => { 
27-   //       process.chdir('__tests__') 
28-   //       await getSolidaritySettings(context) 
29-   //     }).toThrow() 
30-   //     process.chdir('../') 
31-   //   }) 
32- 
33-   //   test('getSolidaritySettings can warn with missing requirements', async () => { 
34-   //     await expect(async () => { 
35-   //       process.chdir('__tests__/sandbox/solidarity_broken') 
36-   //       await getSolidaritySettings(context) 
37-   //     }).toThrowError('ERROR: Found, but no requirements key.  Please validate your solidarity file') 
38-   //     process.chdir('../../../') 
39-   //   }) 
40-   // }) 
24+   describe ( 'w/ failure' ,  ( )  =>  { 
25+     test ( 'getSolidaritySettings can fail' ,  async  ( )  =>  { 
26+ 
27+       // Original sync style 
28+       // expect(async () => { 
29+       //   process.chdir('__tests__') 
30+       //   getSolidaritySettings(context) 
31+       // }).toThrow() 
32+       // process.chdir('../') 
33+ 
34+       process . chdir ( '__tests__' ) 
35+       await  expect ( getSolidaritySettings ( context ) ) 
36+         . rejects 
37+         . toThrow ( ) 
38+       process . chdir ( '../' ) 
39+     } ) 
40+ 
41+     test ( 'getSolidaritySettings can warn with missing requirements' ,  async  ( )  =>  { 
42+       process . chdir ( '__tests__/sandbox/solidarity_broken' ) 
43+       await  expect ( getSolidaritySettings ( context ) ) 
44+         . rejects 
45+         . toThrow ( ) 
46+       process . chdir ( '../../../' ) 
47+     } ) 
48+   } ) 
4149} ) 
4250
4351describe ( 'parameterized getSolidaritySettings' ,  ( )  =>  { 
0 commit comments