Skip to content

Commit 93cf06b

Browse files
Copilotbergmeister
andauthored
Fix Windows Pester expected alias count
Co-authored-by: bergmeister <9250262+bergmeister@users.noreply.github.com>
1 parent d6ca8f2 commit 93cf06b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎Tests/Rules/AvoidUsingAlias.tests.ps1‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,7 @@ Configuration PackageTest {
281281

282282
$violations = @($rule.AnalyzeScript($configuration, $null))
283283

284-
$expectedViolations = if ($PSVersionTable.PSVersion.Major -ge 7) { 4 } else { 3 }
285-
$violations.Count | Should -Be $expectedViolations
284+
$violations.Count | Should -Be 4
286285
$violations | ForEach-Object {
287286
$_.Extent.Text | Should -Be 'gci'
288287
$_.SuggestedCorrections[0].Text | Should -Be 'Get-ChildItem'

0 commit comments

Comments
 (0)