We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c347a1 commit b3ef54aCopy full SHA for b3ef54a
Tests/Engine/InvokeScriptAnalyzer.tests.ps1
@@ -129,9 +129,9 @@ Describe "Test Path" {
129
130
It "Runs rules on script with more than 10 parser errors" {
131
# this is a script with 12 parse errors
132
- 1..12 | Foreach-Object { ')' } | Out-File "TestDrive:\badfile.ps1"
133
- $moreThanTenErrors = Invoke-ScriptAnalyzer -ErrorAction SilentlyContinue "TestDrive:\badfile.ps1"
134
- $moreThanTenErrors.Count | Should -Be 12
+ 1..12 | Foreach-Object { ');' } | Out-File -Encoding ASCII "TestDrive:\badfile.ps1"
+ $moreThanTenErrors = Invoke-ScriptAnalyzer -Path "TestDrive:\badfile.ps1"
+ @($moreThanTenErrors).Count | Should -Be 12
135
}
136
137
0 commit comments