File tree Expand file tree Collapse file tree
test/powershell/Modules/PowerShellGet Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" />
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments