Correct case of $PSHOME special variable

This commit is contained in:
xtqqczze
2020-01-13 19:35:33 +00:00
parent 2782b73e37
commit e0d2e2aade
28 changed files with 58 additions and 58 deletions
@@ -69,11 +69,11 @@ Describe "String cmdlets" -Tags "CI" {
It "match object supports RelativePath method" {
$file = "Modules${sep}Microsoft.PowerShell.Utility${sep}Microsoft.PowerShell.Utility.psd1"
$match = Select-String CmdletsToExport $pshome/$file
$match = Select-String CmdletsToExport $PSHOME/$file
$match.RelativePath($pshome) | Should -Be $file
$match.RelativePath($pshome.ToLower()) | Should -Be $file
$match.RelativePath($pshome.ToUpper()) | Should -Be $file
$match.RelativePath($PSHOME) | Should -Be $file
$match.RelativePath($PSHOME.ToLower()) | Should -Be $file
$match.RelativePath($PSHOME.ToUpper()) | Should -Be $file
}
}
}