Skip to content

Commit 9b8a0af

Browse files
Fix multi-select test assertion: verify Value is [string[]] type directly instead of relying on pipeline enumeration
1 parent 5434cfe commit 9b8a0af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/GitHub.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Describe 'GitHubCustomProperty' {
2727
}
2828
$prop = [GitHubCustomProperty]::new($obj)
2929
$prop.Name | Should -Be 'SubscribeTo'
30-
$prop.Value | Should -BeOfType [string]
30+
$prop.Value -is [string[]] | Should -BeTrue -Because 'multi-select values must be preserved as string arrays'
3131
$prop.Value | Should -HaveCount 3
3232
$prop.Value[0] | Should -Be 'Custom Instructions'
3333
$prop.Value[1] | Should -Be 'License'

0 commit comments

Comments
 (0)