Skip to content

Commit b9fd316

Browse files
committed
Synced my fork and resolved "Cannot determine line endings" in PS5
1 parent 12b4bb1 commit b9fd316

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/Rules/AvoidUsingNewObject.tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ Describe "AvoidUsingNewObject" {
451451

452452
It 'PSCustomObject Property' {
453453
$tempFile = Join-Path $TestDrive 'TestScript2.ps1'
454-
Set-Content -LiteralPath $tempFile -Value {
454+
Set-Content -LiteralPath $tempFile -NoNewline -Value {
455455
for ($i = 0; $i -lt 100000; $i++) {
456456
$resultObject = New-Object PSCustomObject -Property @{
457457
Name = "Name$i"
@@ -467,7 +467,7 @@ Describe "AvoidUsingNewObject" {
467467

468468
It 'HashSet InvariantCultureIgnoreCase' {
469469
$tempFile = Join-Path $TestDrive 'TestScript3.ps1'
470-
Set-Content -LiteralPath $tempFile -Value {
470+
Set-Content -LiteralPath $tempFile -NoNewline -Value {
471471
$hashSet = New-Object `
472472
-TypeName 'System.Collections.Generic.HashSet[String]' `
473473
-ArgumentList ([StringComparer]::InvariantCultureIgnoreCase)

0 commit comments

Comments
 (0)