Skip to content

Commit 17e46ca

Browse files
Copilotbergmeister
andauthored
Make brace formatter expectations platform-independent
Co-authored-by: bergmeister <9250262+bergmeister@users.noreply.github.com>
1 parent 07da3ae commit 17e46ca

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Tests/Rules/PlaceCloseBrace.tests.ps1‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ else {
449449
'-like'
450450
}
451451
"@
452+
$expected = $expected.Replace("`n", [System.Environment]::NewLine)
452453
Invoke-Formatter -ScriptDefinition $oneLineDefinition -Settings $formatterSettings | Should -Be $expected
453454
}
454455

@@ -492,6 +493,7 @@ if (`$RegEx) {
492493
'-like'
493494
}
494495
"@
496+
$expected = $expected.Replace("`n", [System.Environment]::NewLine)
495497
Invoke-Formatter -ScriptDefinition $oneLineDefinition -Settings $formatterSettings | Should -Be $expected
496498
}
497499
}

0 commit comments

Comments
 (0)