mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Correct case of $PSHOME special variable
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user