Skip to content

Commit 69672f5

Browse files
Joel BennettJoel Bennett
authored andcommitted
Remove stray }
1 parent 67a21ef commit 69672f5

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

Test.ps1

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
# The tests in here do not work properly in PowerShell 5.x
22
# If you run them all at once, you will get a lot of FALSE PASSES using the old code
33
# Running one test at a time in a new powershell session solves this problem:
4-
if (Get-Command powershell.exe -ErrorAction SilentlyContinue) {
5-
foreach ($testcase in ls $PSScriptRoot\Tests\*.Tests.ps1) {
6-
powershell -NoProfile -Command Invoke-Pester $testcase.FullName
7-
}
8-
} else {
9-
Write-Warning "Skipping Windows PowerShell tests"
4+
if (Get-Command powershell.exe -ErrorAction SilentlyContinue) {
5+
foreach ($testcase in ls $PSScriptRoot\Tests\*.Tests.ps1) {
6+
powershell -NoProfile -Command Invoke-Pester $testcase.FullName
107
}
8+
} else {
9+
Write-Warning "Skipping Windows PowerShell tests"
10+
}
1111

12-
if (Get-Command pwsh -ErrorAction SilentlyContinue) {
13-
foreach ($testcase in ls $PSScriptRoot\Tests\*.Tests.ps1) {
14-
pwsh -NoProfile -Command Invoke-Pester $testcase.FullName
15-
}
16-
} else {
17-
Write-Warning "Skipping PowerShell Core tests"
12+
if (Get-Command pwsh -ErrorAction SilentlyContinue) {
13+
foreach ($testcase in ls $PSScriptRoot\Tests\*.Tests.ps1) {
14+
pwsh -NoProfile -Command Invoke-Pester $testcase.FullName
1815
}
19-
}
16+
} else {
17+
Write-Warning "Skipping PowerShell Core tests"
18+
}

0 commit comments

Comments
 (0)