Correct case of $PSModuleAutoLoadingPreference special variable
This commit is contained in:
parent
bb58e2aab6
commit
9e5bb4eee7
|
@ -264,11 +264,11 @@ Describe "Import-Module for Binary Modules" -Tags 'CI' {
|
|||
|
||||
Describe "Import-Module should be case insensitive" -Tags 'CI' {
|
||||
BeforeAll {
|
||||
$defaultPSModuleAutoloadingPreference = $PSModuleAutoloadingPreference
|
||||
$defaultPSModuleAutoloadingPreference = $PSModuleAutoLoadingPreference
|
||||
$originalPSModulePath = $env:PSModulePath.Clone()
|
||||
$modulesPath = "$TestDrive\Modules"
|
||||
$env:PSModulePath += [System.IO.Path]::PathSeparator + $modulesPath
|
||||
$PSModuleAutoloadingPreference = "none"
|
||||
$PSModuleAutoLoadingPreference = "none"
|
||||
}
|
||||
|
||||
AfterAll {
|
||||
|
|
Loading…
Reference in a new issue