File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
test/powershell/Modules/PowerShellGet Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 13
13
<ItemGroup >
14
14
<PackageReference Include =" PowerShellGet" Version =" 2.2.5" />
15
15
<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 " />
17
17
<PackageReference Include =" Microsoft.PowerShell.Archive" Version =" 1.2.5" />
18
18
<PackageReference Include =" PSReadLine" Version =" 2.3.4" />
19
19
<PackageReference Include =" ThreadJob" Version =" 2.0.3" />
Original file line number Diff line number Diff line change @@ -145,15 +145,10 @@ Describe "PowerShellGet - Module tests" -tags "Feature" {
145
145
146
146
It " Should install a module correctly to the required location with default CurrentUser scope" {
147
147
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
155
150
$module.Name | Should - Be $TestModule
156
- $module.ModuleBase | Should - Be $installedModuleInfo .InstalledLocation
151
+ $module.ModuleBase.StartsWith ( $ script :MyDocumentsModulesPath , [ System.StringComparison ]::OrdinalIgnoreCase) | Should - BeTrue
157
152
}
158
153
159
154
AfterAll {
You can’t perform that action at this time.
0 commit comments