Skip to content

Commit 826fb54

Browse files
author
Kapil Borle
committed
Fix code formatting in PlaceCloseBrace.tests.ps1
1 parent 16f01b1 commit 826fb54

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Tests/Rules/PlaceCloseBrace.tests.ps1

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ Import-Module PSScriptAnalyzer
55
Import-Module (Join-Path $testRootDirectory "PSScriptAnalyzerTestHelper.psm1")
66

77
$ruleConfiguration = @{
8-
Enable = $true
9-
NoEmptyLineBefore = $true
8+
Enable = $true
9+
NoEmptyLineBefore = $true
1010
IgnoreOneLineBlock = $true
11-
NewLineAfter = $true
11+
NewLineAfter = $true
1212
}
1313

1414
$settings = @{
1515
IncludeRules = @("PSPlaceCloseBrace")
16-
Rules = @{
16+
Rules = @{
1717
PSPlaceCloseBrace = $ruleConfiguration
1818
}
1919
}
@@ -148,11 +148,11 @@ if (Test-Path "blah") {
148148
$violations = Invoke-ScriptAnalyzer -ScriptDefinition $def -Settings $settings
149149
$violations.Count | Should Be 1
150150
$params = @{
151-
RawContent = $def
151+
RawContent = $def
152152
DiagnosticRecord = $violations[0]
153153
CorrectionsCount = 1
154-
ViolationText = '}'
155-
CorrectionText = '}' + [System.Environment]::NewLine
154+
ViolationText = '}'
155+
CorrectionText = '}' + [System.Environment]::NewLine
156156
}
157157
Test-CorrectionExtentFromContent @params
158158
}
@@ -168,11 +168,11 @@ if (Test-Path "blah") {
168168
$violations = Invoke-ScriptAnalyzer -ScriptDefinition $def -Settings $settings
169169
$violations.Count | Should Be 1
170170
$params = @{
171-
RawContent = $def
171+
RawContent = $def
172172
DiagnosticRecord = $violations[0]
173173
CorrectionsCount = 1
174-
ViolationText = '}'
175-
CorrectionText = '}' + [System.Environment]::NewLine
174+
ViolationText = '}'
175+
CorrectionText = '}' + [System.Environment]::NewLine
176176
}
177177
Test-CorrectionExtentFromContent @params
178178
}

0 commit comments

Comments
 (0)