Skip to content

Commit afa54df

Browse files
author
Kapil Borle
committed
Fix failing rule tests on PSv3
1 parent 3485763 commit afa54df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tests/Rules/UseToExportFieldsInManifest.tests.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ Describe "UseManifestExportFields" {
6363
# if more than two elements contain wildcard we can show only the first one as of now.
6464
$results = Run-PSScriptAnalyzerRule $testManifestBadFunctionsWildcardInArrayPath
6565
$results.Count | Should be 2
66-
$results.Where({$_.Message -match "FunctionsToExport"}).Extent.Text | Should be "'Get-*'"
67-
$results.Where({$_.Message -match "CmdletsToExport"}).Extent.Text | Should be "'Update-*'"
66+
($results | Where-Object {$_.Message -match "FunctionsToExport"}).Extent.Text | Should be "'Get-*'"
67+
($results | Where-Object {$_.Message -match "CmdletsToExport"}).Extent.Text | Should be "'Update-*'"
68+
6869
}
6970

7071

0 commit comments

Comments
 (0)