File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1045,6 +1045,7 @@ function Install-ModuleFastHelper {
10451045
10461046 $installPath = $newInstallPath
10471047 $context.InstallPath = $installPath
1048+ $context.Module.ModuleVersion = [string ]$moduleManifestVersion # Some System.Version don't cast right
10481049 $originalModuleVersion > (Join-Path $installPath ' .originalModuleVersion' )
10491050 $installIndicatorPath = Join-Path $installPath ' .incomplete'
10501051 } else {
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ Describe 'Get-ModuleFastPlan' -Tag 'E2E' {
275275 Spec = ' ImportExcel<2'
276276 ModuleName = ' ImportExcel'
277277 Check = {
278- $actual.ModuleVersion | Should - Be ' 1.99'
278+ $actual.ModuleVersion | Should - Be ' 1.99.0 ' # Nuget changes this to 1.99
279279 }
280280 },
281281 @ {
@@ -284,6 +284,13 @@ Describe 'Get-ModuleFastPlan' -Tag 'E2E' {
284284 Check = {
285285 $actual.ModuleVersion | Should - Be ' 2.2.0'
286286 }
287+ },
288+ @ {
289+ Spec = ' ConnectWiseManageAPI=0.4.15.0'
290+ ModuleName = ' ConnectWiseManageAPI'
291+ Check = {
292+ $actual.ModuleVersion | Should - Be ' 0.4.15' # Install module version is 0.4.15.0 but nuget truncates this
293+ }
287294 }
288295 )
289296
@@ -377,7 +384,7 @@ Describe 'Get-ModuleFastPlan' -Tag 'E2E' {
377384 }
378385 It ' Gets multiple modules' {
379386 Get-ModuleFastPlan @ {ModuleName = ' Az' ; RequiredVersion = ' 11.1.0' }, @ {ModuleName = ' VMWare.PowerCli' ; RequiredVersion = ' 13.2.0.22746353' }
380- | Should - HaveCount 168
387+ | Should - HaveCount 170
381388 }
382389
383390 It ' Casts to ModuleSpecification' {
You can’t perform that action at this time.
0 commit comments