mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Use capital 'PSMODULEPATH' in tests so that it works in unix
This commit is contained in:
1 parent
8bb291896c
commit
23ed0e4fa2
1 file changed
+2
-2
@@ -2,7 +2,7 @@ Describe "Module Path Basic Tests" -tags "CI" {
|
||||
|
||||
It "validate module path on windows" -Skip:(!$IsWindows) {
|
||||
|
||||
$paths = $env:PSModulePath -split [System.IO.Path]::PathSeparator
|
||||
$paths = $env:PSMODULEPATH -split [System.IO.Path]::PathSeparator
|
||||
$paths.Count | Should Be 3
|
||||
|
||||
$expectedUserPath = Join-Path -Path $HOME -ChildPath 'Documents\PowerShell\Modules'
|
||||
@@ -17,7 +17,7 @@ Describe "Module Path Basic Tests" -tags "CI" {
|
||||
|
||||
It "validate module path on unix" -Skip:($IsWindows) {
|
||||
|
||||
$paths = $env:PSModulePath -split [System.IO.Path]::PathSeparator
|
||||
$paths = $env:PSMODULEPATH -split [System.IO.Path]::PathSeparator
|
||||
$paths.Count | Should Be 3
|
||||
|
||||
$expectedUserPath = [System.Management.Automation.Platform]::SelectProductNameForDirectory("USER_MODULES")
|
||||
|
||||
Reference in new issue
Block a user