File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,17 @@ Describe "UseConsistentIndentation" {
11
11
function Invoke-FormatterAssertion {
12
12
param (
13
13
[string ] $ScriptDefinition ,
14
- [string ] $ExcpectedScriptDefinition ,
14
+ [string ] $ExpectedScriptDefinition ,
15
15
[int ] $NumberOfExpectedWarnings ,
16
16
[hashtable ] $Settings
17
17
)
18
18
19
19
# Unit test just using this rule only
20
20
$violations = Invoke-ScriptAnalyzer - ScriptDefinition $scriptDefinition - Settings $settings
21
21
$violations.Count | Should - Be $NumberOfExpectedWarnings - Because $ScriptDefinition
22
- Invoke-Formatter - ScriptDefinition $scriptDefinition - Settings $settings | Should - Be $expected - Because $ScriptDefinition
22
+ Invoke-Formatter - ScriptDefinition $scriptDefinition - Settings $settings | Should - Be $ExpectedScriptDefinition - Because $ScriptDefinition
23
23
# Integration test with all default formatting rules
24
- Invoke-Formatter - ScriptDefinition $scriptDefinition | Should - Be $expected - Because $ScriptDefinition
24
+ Invoke-Formatter - ScriptDefinition $scriptDefinition | Should - Be $ExpectedScriptDefinition - Because $ScriptDefinition
25
25
}
26
26
}
27
27
BeforeEach {
You can’t perform that action at this time.
0 commit comments