Skip to content

Commit d788bb7

Browse files
authored
Update platform.test.ts
1 parent ed355ae commit d788bb7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/platform.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ suite("Platform module", () => {
7777
checkDefaultPowerShellPath(
7878
platformDetails,
7979
platform.getAvailablePowerShellExes(platformDetails, undefined).filter((psPath) => (psPath.versionName)
80-
=== "PowerShell Core 6 (x86)"));
80+
=== "PowerShell Core 6 (x86)")[0].exePath);
8181

8282
checkAvailableWindowsPowerShellPaths(
8383
platformDetails,
@@ -107,7 +107,8 @@ suite("Platform module", () => {
107107

108108
checkDefaultPowerShellPath(
109109
platformDetails,
110-
"C:\\Program Files\\PowerShell\\6\\pwsh.exe");
110+
platform.getAvailablePowerShellExes(platformDetails, undefined).filter((psPath) => (psPath.versionName)
111+
=== "PowerShell Core 6")[0].exePath);
111112

112113
checkAvailableWindowsPowerShellPaths(
113114
platformDetails,

0 commit comments

Comments
 (0)