removed appending WindowsPowerShell PSModulePath (#4656)

This commit is contained in:
Steve Lee
2017-08-25 11:05:23 -07:00
committed by Travis Plunk
parent 7f79eadbdd
commit 1e0acfac5e
3 changed files with 0 additions and 30 deletions
@@ -94,18 +94,4 @@ Describe "SxS Module Path Basic Tests" -tags "CI" {
$paths -contains $customeModules | Should Be $true
}
It "Default PowerShell profile appends Windows PowerShell PSModulePath only on Windows" {
$psmodulepath = & $powershell -nologo -c '$env:PSModulePath'
if ($IsWindows)
{
$psmodulepath[0] | Should Match "Warning" # for Windows, there is a warning that path being appended
$psmodulepath[1] | Should Match "WindowsPowerShell"
}
else
{
$psmodulepath[0] | Should Not Match "WindowsPowerShell"
}
}
}