Correct case of $PSModuleAutoLoadingPreference special variable

This commit is contained in:
xtqqczze 2020-01-13 19:26:01 +00:00
parent bb58e2aab6
commit 9e5bb4eee7

View file

@ -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 {