@@ -118,7 +118,7 @@ Describe PowerShell.PSGet.UpdateModuleManifest -Tags 'BVT','InnerLoop' {
118
118
# Action:
119
119
# Update-ModuleManifest -Path [Path]
120
120
#
121
- # Expected Result: The updated manifest should have the same proerty values.
121
+ # Expected Result: The updated manifest should have the same property values.
122
122
#
123
123
It UpdateModuleManifestWithNoAdditionalParameters2 {
124
124
@@ -144,6 +144,30 @@ Describe PowerShell.PSGet.UpdateModuleManifest -Tags 'BVT','InnerLoop' {
144
144
145
145
AssertEquals $updatedModuleInfo.CompanyName $editedModuleInfo.CompanyName " Company name should be $expectedCompanyName "
146
146
AssertEquals $ ($text.length ) $expectedLength " Number of wildcards should be $expectedLength "
147
+ }
148
+
149
+ # Purpose: Validate Update-ModuleManifest will not reset original parameter values to default values
150
+ #
151
+ # Action:
152
+ # Update-ModuleManifest -Path [Path]
153
+ #
154
+ # Expected Result: The updated manifest should have the same property values.
155
+ #
156
+ It UpdateModuleManifestWithNoAdditionalParameters3 {
157
+
158
+ New-ModuleManifest - Path $script :testManifestPath - ModuleVersion ' 1.0' - FunctionsToExport ' function1' - NestedModules ' module1' - AliasesToExport ' alias1'
159
+ $expectedLength = 4
160
+ Update-ModuleManifest - Path $script :testManifestPath
161
+
162
+ Import-LocalizedData - BindingVariable ModuleManifestHashTable `
163
+ - FileName (Microsoft.PowerShell.Management\Split-Path $script :testManifestPath - Leaf) `
164
+ - BaseDirectory (Microsoft.PowerShell.Management\Split-Path $script :testManifestPath - Parent) `
165
+ - ErrorAction SilentlyContinue `
166
+ - WarningAction SilentlyContinue
167
+
168
+ AssertEquals $ModuleManifestHashTable.FunctionsToExport ' function1' " FunctionsToExport should be 'function1'"
169
+ AssertEquals $ModuleManifestHashTable.NestedModules ' module1' " NestedModules should be 'module1'"
170
+ AssertEquals $ModuleManifestHashTable.AliasesToExport ' alias1' " AliasesToExport should be 'alias1'"
147
171
}
148
172
149
173
# Purpose: Validate Update-ModuleManifest will keep the original property values for DefaultCommandPrefix,
@@ -197,8 +221,6 @@ Describe PowerShell.PSGet.UpdateModuleManifest -Tags 'BVT','InnerLoop' {
197
221
}
198
222
}
199
223
200
-
201
-
202
224
# Purpose: Update a module manifest with same parameters
203
225
#
204
226
# Action: Update-ModuleManifest -Path [path] -NestedModules -Guid -Author -CompanyName -Copyright -RootModule -ModuleVersion...
@@ -636,7 +658,6 @@ Describe PowerShell.PSGet.UpdateModuleManifest -Tags 'BVT','InnerLoop' {
636
658
637
659
}
638
660
639
-
640
661
# Purpose: Validate Update-ModuleManifest will throw errors when there are paths defined in FilePath that are not in the module base
641
662
#
642
663
# Action:
0 commit comments