Skip to content

Commit 9320a74

Browse files
committed
Use environment variable to get Windows directory to address PR feedback
1 parent 069d02f commit 9320a74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Rules/UseCorrectCasing.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Describe "UseCorrectCasing" {
3131
$applicationPath = '. /bin/ls'
3232
}
3333
else {
34-
$applicationPath = 'C:\Windows\System32\cmd.exe'
34+
$applicationPath = "${env:WINDIR}\System32\cmd.exe"
3535
}
3636
Invoke-Formatter ". $applicationPath" | Should -Be ". $applicationPath"
3737
}

0 commit comments

Comments
 (0)