Skip to content

Commit a161959

Browse files
author
Kapil Borle
committed
Update invoke-formatter tests
1 parent 3dcbba6 commit a161959

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

Tests/Engine/InvokeFormatter.tests.ps1

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,6 @@ function foo {
5050

5151
Invoke-Formatter -ScriptDefinition $def -Range @(3, 1, 4, 1) | Should Be $expected
5252
}
53-
54-
It "Should format only within the range when a range object is given" {
55-
$def = @"
56-
function foo {
57-
"xyz"
58-
"abc"
59-
}
60-
"@
61-
62-
$expected = @"
63-
function foo {
64-
"xyz"
65-
"abc"
66-
}
67-
"@
68-
69-
$range = New-Object -TypeName "Microsoft.Windows.PowerShell.ScriptAnalyzer.Range" -ArgumentList 3, 1, 4, 1
70-
Invoke-Formatter -ScriptDefinition $def -Range $range | Should Be $expected
71-
}
7253
}
7354

7455
Context "When no settings are given" {

0 commit comments

Comments
 (0)