Skip to content

Commit 098139f

Browse files
committed
improve test as per PR review
1 parent 868640d commit 098139f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Tests/Rules/PlaceCloseBrace.tests.ps1

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,7 @@ $hashtable = @{a = 1; b = 2}
9797
}
9898

9999
It "Should not crash when hashtable is defined on first token" {
100-
$def = @'
101-
@{
102-
key = value }
103-
'@
100+
$def = "@{ `n Key = value }"
104101

105102
$violations = Invoke-ScriptAnalyzer -ScriptDefinition $def -Settings $settings -ErrorAction Stop
106103
$violations.Count | Should -Be 1

0 commit comments

Comments
 (0)