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 3485763 commit afa54dfCopy full SHA for afa54df
Tests/Rules/UseToExportFieldsInManifest.tests.ps1
@@ -63,8 +63,9 @@ Describe "UseManifestExportFields" {
63
# if more than two elements contain wildcard we can show only the first one as of now.
64
$results = Run-PSScriptAnalyzerRule $testManifestBadFunctionsWildcardInArrayPath
65
$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-*'"
+ ($results | Where-Object {$_.Message -match "FunctionsToExport"}).Extent.Text | Should be "'Get-*'"
+ ($results | Where-Object {$_.Message -match "CmdletsToExport"}).Extent.Text | Should be "'Update-*'"
68
+
69
}
70
71
0 commit comments