mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Update PSResourceGet version for 1.0.1 release (#20652)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="PowerShellGet" Version="2.2.5" />
|
||||
<PackageReference Include="PackageManagement" Version="1.4.8.1" />
|
||||
<PackageReference Include="Microsoft.PowerShell.PSResourceGet" Version="1.0.0" />
|
||||
<PackageReference Include="Microsoft.PowerShell.PSResourceGet" Version="1.0.1" />
|
||||
<PackageReference Include="Microsoft.PowerShell.Archive" Version="1.2.5" />
|
||||
<PackageReference Include="PSReadLine" Version="2.3.4" />
|
||||
<PackageReference Include="ThreadJob" Version="2.0.3" />
|
||||
|
||||
@@ -145,15 +145,10 @@ Describe "PowerShellGet - Module tests" -tags "Feature" {
|
||||
|
||||
It "Should install a module correctly to the required location with default CurrentUser scope" {
|
||||
Install-Module -Name $TestModule -Repository $RepositoryName
|
||||
$installedModuleInfo = Get-InstalledModule -Name $TestModule
|
||||
|
||||
$installedModuleInfo | Should -Not -BeNullOrEmpty
|
||||
$installedModuleInfo.Name | Should -Be $TestModule
|
||||
$installedModuleInfo.InstalledLocation.StartsWith($script:MyDocumentsModulesPath, [System.StringComparison]::OrdinalIgnoreCase) | Should -BeTrue
|
||||
|
||||
$module = Get-Module $TestModule -ListAvailable
|
||||
$module = Get-Module -Name $TestModule -ListAvailable
|
||||
$module | Should -Not -BeNullOrEmpty
|
||||
$module.Name | Should -Be $TestModule
|
||||
$module.ModuleBase | Should -Be $installedModuleInfo.InstalledLocation
|
||||
$module.ModuleBase.StartsWith($script:MyDocumentsModulesPath, [System.StringComparison]::OrdinalIgnoreCase) | Should -BeTrue
|
||||
}
|
||||
|
||||
AfterAll {
|
||||
|
||||
Reference in New Issue
Block a user