@@ -467,8 +467,8 @@ function setupTestEnvironment(testPlatform: ITestPlatform) {
467
467
}
468
468
}
469
469
470
- describe ( "Platform module" , ( ) => {
471
- describe ( "PlatformDetails" , ( ) => {
470
+ describe ( "Platform module" , function ( ) {
471
+ describe ( "PlatformDetails" , function ( ) {
472
472
const platformDetails : platform . IPlatformDetails = platform . getPlatformDetails ( ) ;
473
473
switch ( process . platform ) {
474
474
case "darwin" :
@@ -521,14 +521,14 @@ describe("Platform module", () => {
521
521
}
522
522
} ) ;
523
523
524
- describe ( "Default PowerShell installation" , ( ) => {
525
- afterEach ( ( ) => {
524
+ describe ( "Default PowerShell installation" , function ( ) {
525
+ afterEach ( function ( ) {
526
526
sinon . restore ( ) ;
527
527
mockFS . restore ( ) ;
528
528
} ) ;
529
529
530
530
for ( const testPlatform of successTestCases ) {
531
- it ( `Default PowerShell path on ${ testPlatform . name } ` , ( ) => {
531
+ it ( `Default PowerShell path on ${ testPlatform . name } ` , function ( ) {
532
532
setupTestEnvironment ( testPlatform ) ;
533
533
534
534
const powerShellExeFinder = new platform . PowerShellExeFinder ( testPlatform . platformDetails ) ;
@@ -542,7 +542,7 @@ describe("Platform module", () => {
542
542
}
543
543
544
544
for ( const testPlatform of errorTestCases ) {
545
- it ( `Extension startup fails gracefully on ${ testPlatform . name } ` , ( ) => {
545
+ it ( `Extension startup fails gracefully on ${ testPlatform . name } ` , function ( ) {
546
546
setupTestEnvironment ( testPlatform ) ;
547
547
548
548
const powerShellExeFinder = new platform . PowerShellExeFinder ( testPlatform . platformDetails ) ;
@@ -553,14 +553,14 @@ describe("Platform module", () => {
553
553
}
554
554
} ) ;
555
555
556
- describe ( "Expected PowerShell installation list" , ( ) => {
557
- afterEach ( ( ) => {
556
+ describe ( "Expected PowerShell installation list" , function ( ) {
557
+ afterEach ( function ( ) {
558
558
sinon . restore ( ) ;
559
559
mockFS . restore ( ) ;
560
560
} ) ;
561
561
562
562
for ( const testPlatform of successTestCases ) {
563
- it ( `PowerShell installation list on ${ testPlatform . name } ` , ( ) => {
563
+ it ( `PowerShell installation list on ${ testPlatform . name } ` , function ( ) {
564
564
setupTestEnvironment ( testPlatform ) ;
565
565
566
566
const powerShellExeFinder = new platform . PowerShellExeFinder ( testPlatform . platformDetails ) ;
@@ -583,7 +583,7 @@ describe("Platform module", () => {
583
583
}
584
584
585
585
for ( const testPlatform of errorTestCases ) {
586
- it ( `Extension startup fails gracefully on ${ testPlatform . name } ` , ( ) => {
586
+ it ( `Extension startup fails gracefully on ${ testPlatform . name } ` , function ( ) {
587
587
setupTestEnvironment ( testPlatform ) ;
588
588
589
589
const powerShellExeFinder = new platform . PowerShellExeFinder ( testPlatform . platformDetails ) ;
@@ -594,16 +594,16 @@ describe("Platform module", () => {
594
594
}
595
595
} ) ;
596
596
597
- describe ( "Windows PowerShell path fix" , ( ) => {
598
- afterEach ( ( ) => {
597
+ describe ( "Windows PowerShell path fix" , function ( ) {
598
+ afterEach ( function ( ) {
599
599
sinon . restore ( ) ;
600
600
mockFS . restore ( ) ;
601
601
} ) ;
602
602
603
603
for ( const testPlatform of successTestCases
604
604
. filter ( ( tp ) => tp . platformDetails . operatingSystem === platform . OperatingSystem . Windows ) ) {
605
605
606
- it ( `Corrects the Windows PowerShell path on ${ testPlatform . name } ` , ( ) => {
606
+ it ( `Corrects the Windows PowerShell path on ${ testPlatform . name } ` , function ( ) {
607
607
setupTestEnvironment ( testPlatform ) ;
608
608
609
609
function getWinPSPath ( systemDir : string ) {
0 commit comments