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
@@ -329,7 +329,7 @@ Describe "Remove-Module : module is readOnly | Constant" -Tags "CI" {
Describe "Remove-Module : module provides the PSDrive for current PS Session" -Tags "CI" {
It "Remove-Module : module provides the PSDrive for current PS Session" {
$module = Get-Module (Join-Path $PSHome "System.Management.Automation.dll") -ListAvailable
$module = Get-Module (Join-Path $PSHOME "System.Management.Automation.dll") -ListAvailable
{ Remove-Module $module -ErrorAction Stop } | Should -Throw -ErrorId "InvalidOperation,Microsoft.PowerShell.Commands.RemoveModuleCommand"
}
}