Skip to content

Commit c52f06f

Browse files
tablackburnclaude
andcommitted
fix(tests): use $commandParameterNames in the param-help assertion
This repo's older scaffolding had drifted: the param-help Context asserted against $parameterNames, which is never defined (only $commandParameterNames exists). The discovery-phase fix activates that Context, so correct the variable. Surfaced by Copilot on ReScenePS #21. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent fbe0b16 commit c52f06f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Help.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Describe "Test help for <_.Name>" -ForEach $commands {
238238

239239
# Shouldn't find extra parameters in help
240240
It 'finds help parameter in code: <_>' {
241-
$_ -in $parameterNames | Should -Be $true
241+
$_ -in $commandParameterNames | Should -Be $true
242242
}
243243
}
244244
}

0 commit comments

Comments
 (0)