Skip to content

Commit aa4ecf8

Browse files
committed
Apply formatting to test fixtures
1 parent 643bddd commit aa4ecf8

18 files changed

+52
-52
lines changed

test/PowerShellEditorServices.Test.Shared/Refactoring/Variables/VariableCommandParameter.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ function Get-foo {
77
return $string[$pos]
88

99
}
10-
Get-foo -string "Hello" -pos -1
10+
Get-foo -string 'Hello' -pos -1

test/PowerShellEditorServices.Test.Shared/Refactoring/Variables/VariableCommandParameterRenamed.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ function Get-foo {
77
return $Renamed[$pos]
88

99
}
10-
Get-foo -Renamed "Hello" -pos -1
10+
Get-foo -Renamed 'Hello' -pos -1

test/PowerShellEditorServices.Test.Shared/Refactoring/Variables/VariableCommandParameterSplatted.ps1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ function New-User {
33
[string]$Username,
44
[string]$password
55
)
6-
write-host $username + $password
6+
Write-Host $username + $password
77

8-
$splat= @{
9-
Username = "JohnDeer"
10-
Password = "SomePassword"
8+
$splat = @{
9+
Username = 'JohnDeer'
10+
Password = 'SomePassword'
1111
}
1212
New-User @splat
1313
}
1414

15-
$UserDetailsSplat= @{
16-
Username = "JohnDoe"
17-
Password = "SomePassword"
15+
$UserDetailsSplat = @{
16+
Username = 'JohnDoe'
17+
Password = 'SomePassword'
1818
}
1919
New-User @UserDetailsSplat
2020

21-
New-User -Username "JohnDoe" -Password "SomePassword"
21+
New-User -Username 'JohnDoe' -Password 'SomePassword'

test/PowerShellEditorServices.Test.Shared/Refactoring/Variables/VariableCommandParameterSplattedRenamed.ps1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ function New-User {
33
[string]$Renamed,
44
[string]$password
55
)
6-
write-host $Renamed + $password
6+
Write-Host $Renamed + $password
77

8-
$splat= @{
9-
Renamed = "JohnDeer"
10-
Password = "SomePassword"
8+
$splat = @{
9+
Renamed = 'JohnDeer'
10+
Password = 'SomePassword'
1111
}
1212
New-User @splat
1313
}
1414

15-
$UserDetailsSplat= @{
16-
Renamed = "JohnDoe"
17-
Password = "SomePassword"
15+
$UserDetailsSplat = @{
16+
Renamed = 'JohnDoe'
17+
Password = 'SomePassword'
1818
}
1919
New-User @UserDetailsSplat
2020

21-
New-User -Renamed "JohnDoe" -Password "SomePassword"
21+
New-User -Renamed 'JohnDoe' -Password 'SomePassword'

test/PowerShellEditorServices.Test.Shared/Refactoring/Variables/VariableInParam.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
param([int]$Count=50, [int]$DelayMilliseconds=200)
1+
param([int]$Count = 50, [int]$DelayMilliseconds = 200)
22

33
function Write-Item($itemCount) {
44
$i = 1
@@ -20,9 +20,9 @@ function Write-Item($itemCount) {
2020
# Hover over the function name below to see the PSScriptAnalyzer warning that "Do-Work"
2121
# doesn't use an approved verb.
2222
function Do-Work($workCount) {
23-
Write-Output "Doing work..."
23+
Write-Output 'Doing work...'
2424
Write-Item $workcount
25-
Write-Host "Done!"
25+
Write-Host 'Done!'
2626
}
2727

2828
Do-Work $Count

test/PowerShellEditorServices.Test.Shared/Refactoring/Variables/VariableInParamRenamed.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
param([int]$Count=50, [int]$DelayMilliseconds=200)
1+
param([int]$Count = 50, [int]$DelayMilliseconds = 200)
22

33
function Write-Item($itemCount) {
44
$i = 1
@@ -20,9 +20,9 @@ function Write-Item($itemCount) {
2020
# Hover over the function name below to see the PSScriptAnalyzer warning that "Do-Work"
2121
# doesn't use an approved verb.
2222
function Do-Work($Renamed) {
23-
Write-Output "Doing work..."
23+
Write-Output 'Doing work...'
2424
Write-Item $Renamed
25-
Write-Host "Done!"
25+
Write-Host 'Done!'
2626
}
2727

2828
Do-Work $Count
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
$var = "Hello"
1+
$var = 'Hello'
22
$action = { Write-Output $var }
33
&$action
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
$Renamed = "Hello"
1+
$Renamed = 'Hello'
22
$action = { Write-Output $Renamed }
33
&$action
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
$var = "Hello"
2-
$action = { $var="No";Write-Output $var }
1+
$var = 'Hello'
2+
$action = { $var = 'No'; Write-Output $var }
33
&$action
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
$var = "Hello"
2-
$action = { $Renamed="No";Write-Output $Renamed }
1+
$var = 'Hello'
2+
$action = { $Renamed = 'No'; Write-Output $Renamed }
33
&$action

0 commit comments

Comments
 (0)