@@ -467,8 +467,8 @@ function setupTestEnvironment(testPlatform: ITestPlatform) {
467467 }
468468}
469469
470- describe ( "Platform module" , ( ) => {
471- describe ( "PlatformDetails" , ( ) => {
470+ describe ( "Platform module" , function ( ) {
471+ describe ( "PlatformDetails" , function ( ) {
472472 const platformDetails : platform . IPlatformDetails = platform . getPlatformDetails ( ) ;
473473 switch ( process . platform ) {
474474 case "darwin" :
@@ -521,14 +521,14 @@ describe("Platform module", () => {
521521 }
522522 } ) ;
523523
524- describe ( "Default PowerShell installation" , ( ) => {
525- afterEach ( ( ) => {
524+ describe ( "Default PowerShell installation" , function ( ) {
525+ afterEach ( function ( ) {
526526 sinon . restore ( ) ;
527527 mockFS . restore ( ) ;
528528 } ) ;
529529
530530 for ( const testPlatform of successTestCases ) {
531- it ( `Default PowerShell path on ${ testPlatform . name } ` , ( ) => {
531+ it ( `Default PowerShell path on ${ testPlatform . name } ` , function ( ) {
532532 setupTestEnvironment ( testPlatform ) ;
533533
534534 const powerShellExeFinder = new platform . PowerShellExeFinder ( testPlatform . platformDetails ) ;
@@ -542,7 +542,7 @@ describe("Platform module", () => {
542542 }
543543
544544 for ( const testPlatform of errorTestCases ) {
545- it ( `Extension startup fails gracefully on ${ testPlatform . name } ` , ( ) => {
545+ it ( `Extension startup fails gracefully on ${ testPlatform . name } ` , function ( ) {
546546 setupTestEnvironment ( testPlatform ) ;
547547
548548 const powerShellExeFinder = new platform . PowerShellExeFinder ( testPlatform . platformDetails ) ;
@@ -553,14 +553,14 @@ describe("Platform module", () => {
553553 }
554554 } ) ;
555555
556- describe ( "Expected PowerShell installation list" , ( ) => {
557- afterEach ( ( ) => {
556+ describe ( "Expected PowerShell installation list" , function ( ) {
557+ afterEach ( function ( ) {
558558 sinon . restore ( ) ;
559559 mockFS . restore ( ) ;
560560 } ) ;
561561
562562 for ( const testPlatform of successTestCases ) {
563- it ( `PowerShell installation list on ${ testPlatform . name } ` , ( ) => {
563+ it ( `PowerShell installation list on ${ testPlatform . name } ` , function ( ) {
564564 setupTestEnvironment ( testPlatform ) ;
565565
566566 const powerShellExeFinder = new platform . PowerShellExeFinder ( testPlatform . platformDetails ) ;
@@ -583,7 +583,7 @@ describe("Platform module", () => {
583583 }
584584
585585 for ( const testPlatform of errorTestCases ) {
586- it ( `Extension startup fails gracefully on ${ testPlatform . name } ` , ( ) => {
586+ it ( `Extension startup fails gracefully on ${ testPlatform . name } ` , function ( ) {
587587 setupTestEnvironment ( testPlatform ) ;
588588
589589 const powerShellExeFinder = new platform . PowerShellExeFinder ( testPlatform . platformDetails ) ;
@@ -594,16 +594,16 @@ describe("Platform module", () => {
594594 }
595595 } ) ;
596596
597- describe ( "Windows PowerShell path fix" , ( ) => {
598- afterEach ( ( ) => {
597+ describe ( "Windows PowerShell path fix" , function ( ) {
598+ afterEach ( function ( ) {
599599 sinon . restore ( ) ;
600600 mockFS . restore ( ) ;
601601 } ) ;
602602
603603 for ( const testPlatform of successTestCases
604604 . filter ( ( tp ) => tp . platformDetails . operatingSystem === platform . OperatingSystem . Windows ) ) {
605605
606- it ( `Corrects the Windows PowerShell path on ${ testPlatform . name } ` , ( ) => {
606+ it ( `Corrects the Windows PowerShell path on ${ testPlatform . name } ` , function ( ) {
607607 setupTestEnvironment ( testPlatform ) ;
608608
609609 function getWinPSPath ( systemDir : string ) {
0 commit comments