8000 Update `PSResourceGet` version for `1.0.1` release (#20652) · PowerShell/PowerShell@9ff866d · GitHub
[go: up one dir, main page]

Skip to content

Commit 9ff866d

Browse files
authored
Update PSResourceGet version for 1.0.1 release (#20652)
1 parent fa3aa16 commit 9ff866d

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/Modules/PSGalleryModules.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<ItemGroup>
1414
<PackageReference Include="PowerShellGet" Version="2.2.5" />
1515
<PackageReference Include="PackageManagement" Version="1.4.8.1" />
16-
<PackageReference Include="Microsoft.PowerShell.PSResourceGet" Version="1.0.0" />
16+
<PackageReference Include="Microsoft.PowerShell.PSResourceGet" Version="1.0.1" />
1717
<PackageReference Include="Microsoft.PowerShell.Archive" Version="1.2.5" />
1818
<PackageReference Include="PSReadLine" Version="2.3.4" />
1919
<PackageReference Include="ThreadJob" Version="2.0.3" />

test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,10 @@ Describe "PowerShellGet - Module tests" -tags "Feature" {
145145

146146
It "Should install a module correctly to the required location with default CurrentUser scope" {
147147
Install-Module -Name $TestModule -Repository $RepositoryName
148-
$installedModuleInfo = Get-InstalledModule -Name $TestModule
149-
150-
$installedModuleInfo | Should -Not -BeNullOrEmpty
151-
$installedModuleInfo.Name | Should -Be $TestModule
152-
$installedModuleInfo.InstalledLocation.StartsWith($script:MyDocumentsModulesPath, [System.StringComparison]::OrdinalIgnoreCase) | Should -BeTrue
153-
154-
$module = Get-Module $TestModule -ListAvailable
148+
$module = Get-Module -Name $TestModule -ListAvailable
149+
$module | Should -Not -BeNullOrEmpty
155150
$module.Name | Should -Be $TestModule
156-
$module.ModuleBase | Should -Be $installedModuleInfo.InstalledLocation
151+
$module.ModuleBase.StartsWith($script:MyDocumentsModulesPath, [System.StringComparison]::OrdinalIgnoreCase) | Should -BeTrue
157152
}
158153

159154
AfterAll {

0 commit comments

Comments
 (0)
0