Skip to content

Commit 7030c97

Browse files
Fix PSUseConsistentWhitespace: add spaces after unary comma operators in nested-sequence depth test
1 parent 82bedcd commit 7030c97

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/ConvertTo-Yaml.Tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,9 @@ Describe 'ConvertTo-Yaml' {
338338
}
339339

340340
It 'Truncates deeply nested sequences beyond -Depth' {
341-
$inner = ,('innermost')
342-
$middle = ,$inner
343-
$outer = ,$middle
341+
$inner = , ('innermost')
342+
$middle = , $inner
343+
$outer = , $middle
344344
$yaml = ConvertTo-Yaml -InputObject $outer -Depth 1 -WarningAction SilentlyContinue
345345
$yaml | Should -Not -BeNullOrEmpty
346346
$yaml | Should -Not -Match 'innermost'

0 commit comments

Comments
 (0)