Skip to content

Commit

Permalink
Update PSResourceGet version for 1.0.1 release (PowerShell#20652)
Browse files Browse the repository at this point in the history
  • Loading branch information
anamnavi authored and VindSkyggen committed Dec 26, 2023
1 parent 2935bf0 commit dc31979
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Modules/PSGalleryModules.csproj
Expand Up @@ -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" />
Expand Down
11 changes: 3 additions & 8 deletions test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1
Expand Up @@ -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 {
Expand Down

0 comments on commit dc31979

Please sign in to comment.