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 {
1045
1045
1046
1046
$installPath = $newInstallPath
1047
1047
$context.InstallPath = $installPath
1048
+ $context.Module.ModuleVersion = [string ]$moduleManifestVersion # Some System.Version don't cast right
1048
1049
$originalModuleVersion > (Join-Path $installPath ' .originalModuleVersion' )
1049
1050
$installIndicatorPath = Join-Path $installPath ' .incomplete'
1050
1051
} else {
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ Describe 'Get-ModuleFastPlan' -Tag 'E2E' {
275
275
Spec = ' ImportExcel<2'
276
276
ModuleName = ' ImportExcel'
277
277
Check = {
278
- $actual.ModuleVersion | Should - Be ' 1.99'
278
+ $actual.ModuleVersion | Should - Be ' 1.99.0 ' # Nuget changes this to 1.99
279
279
}
280
280
},
281
281
@ {
@@ -284,6 +284,13 @@ Describe 'Get-ModuleFastPlan' -Tag 'E2E' {
284
284
Check = {
285
285
$actual.ModuleVersion | Should - Be ' 2.2.0'
286
286
}
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
+ }
287
294
}
288
295
)
289
296
@@ -377,7 +384,7 @@ Describe 'Get-ModuleFastPlan' -Tag 'E2E' {
377
384
}
378
385
It ' Gets multiple modules' {
379
386
Get-ModuleFastPlan @ {ModuleName = ' Az' ; RequiredVersion = ' 11.1.0' }, @ {ModuleName = ' VMWare.PowerCli' ; RequiredVersion = ' 13.2.0.22746353' }
380
- | Should - HaveCount 168
387
+ | Should - HaveCount 170
381
388
}
382
389
383
390
It ' Casts to ModuleSpecification' {
You can’t perform that action at this time.
0 commit comments