File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ suite("Platform module", () => {
77
77
checkDefaultPowerShellPath (
78
78
platformDetails ,
79
79
platform . getAvailablePowerShellExes ( platformDetails , undefined ) . filter ( ( psPath ) => ( psPath . versionName )
80
- === "PowerShell Core 6 (x86)" ) ) ;
80
+ === "PowerShell Core 6 (x86)" ) [ 0 ] . exePath ) ;
81
81
82
82
checkAvailableWindowsPowerShellPaths (
83
83
platformDetails ,
@@ -107,7 +107,8 @@ suite("Platform module", () => {
107
107
108
108
checkDefaultPowerShellPath (
109
109
platformDetails ,
110
- "C:\\Program Files\\PowerShell\\6\\pwsh.exe" ) ;
110
+ platform . getAvailablePowerShellExes ( platformDetails , undefined ) . filter ( ( psPath ) => ( psPath . versionName )
111
+ === "PowerShell Core 6" ) [ 0 ] . exePath ) ;
111
112
112
113
checkAvailableWindowsPowerShellPaths (
113
114
platformDetails ,
You can’t perform that action at this time.
0 commit comments