Skip to content

Commit 02d906b

Browse files
author
Kapil Borle
committed
Create a workaround for a failing test in ModuleHelp.tests.ps1
1 parent d04a046 commit 02d906b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/Engine/ModuleHelp.Tests.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,9 @@ foreach ($command in $commands) {
270270

271271
# Should be a description for every parameter
272272
It "gets help for parameter: $parameterName : in $commandName" {
273-
$parameterHelp.Description.Text | Should Not BeNullOrEmpty
273+
# `$parameterHelp.Description.Text | Should Not BeNullOrEmpty` fails for -Settings paramter
274+
# without explicit [string] casting on the Text property
275+
[string]::IsNullOrEmpty($parameterHelp.Description.Text) | Should Be $false
274276
}
275277

276278
# Required value in Help should match IsMandatory property of parameter

0 commit comments

Comments
 (0)