You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$moduleName='PSReadLine'$prereleaseVersion='2.2.0-beta2'# Install with -AllowPrereleaseInstall-Module-Force -AllowPrerelease $moduleName-RequiredVersion $prereleaseVersiontry {
{ Uninstall-Module-ErrorAction Stop $moduleName-RequiredVersion $prereleaseVersion } | Should -not-Throw
}
finally {
# Uninstalling only succeeds with -AllowPrereleaseUninstall-Module-AllowPrerelease $moduleName-RequiredVersion $prereleaseVersion
}
Expected behavior
The test should pass.
Actual behavior
The test fails, because -AllowPrerelease is unexpectedly required.
Expected no exception to be thrown, but an exception
"The '-AllowPrerelease' parameter must be specified when using the Prerelease string in MinimumVersion, MaximumVersion, or RequiredVersion."
was thrown
Environment data
PowerShell Core 7.2.0-preview.5
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Expected behavior
The test should pass.
Actual behavior
The test fails, because
-AllowPrerelease
is unexpectedly required.Environment data
The text was updated successfully, but these errors were encountered: