mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Change install scope for Install-PackageProvider.Tests.ps1
This helps avoid problem when run as non-elevated user.
This commit is contained in:
@@ -260,7 +260,7 @@ Describe "Install-Save-Package with multiple sources" -Tags "Feature" {
|
||||
|
||||
It "install-package with array of sources, Expect succeed" {
|
||||
|
||||
$x= install-package jquery -force -Source @('foooobarrrr', 'https://www.nuget.org/api/v2') -ProviderName @('PowershellGet', 'NuGet')
|
||||
$x= install-package -Scope CurrentUser jquery -force -Source @('foooobarrrr', 'https://www.nuget.org/api/v2') -ProviderName @('PowershellGet', 'NuGet')
|
||||
|
||||
$x | ?{ $_.name -eq "jquery" } | should not BeNullOrEmpty
|
||||
#$x | ?{ $_.Source -eq "https://www.nuget.org/api/v2" } | should not BeNullOrEmpty
|
||||
|
||||
Reference in New Issue
Block a user