Skip to content

Commit 2544678

Browse files
committed
modify tests
1 parent a6180eb commit 2544678

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/Engine/GetScriptAnalyzerRule.tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Describe "TestSeverity" {
118118

119119
It "filters rules based on multiple severity inputs"{
120120
$rules = Get-ScriptAnalyzerRule -Severity Error,Information
121-
$rules.Count | Should be 9
121+
$rules.Count | Should be 12
122122
}
123123

124124
It "takes lower case inputs" {
@@ -130,11 +130,11 @@ Describe "TestSeverity" {
130130
Describe "TestWildCard" {
131131
It "filters rules based on the -Name wild card input" {
132132
$rules = Get-ScriptAnalyzerRule -Name PSDSC*
133-
$rules.Count | Should be 4
133+
$rules.Count | Should be 6
134134
}
135135

136136
It "filters rules based on wild card input and severity"{
137137
$rules = Get-ScriptAnalyzerRule -Name PSDSC* -Severity Information
138-
$rules.Count | Should be 1
138+
$rules.Count | Should be 3
139139
}
140140
}

Tests/Engine/InvokeScriptAnalyzer.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Describe "Test IncludeRule" {
141141

142142
it "includes 2 wildcardrules" {
143143
$includeWildcard = Invoke-ScriptAnalyzer $directory\..\Rules\BadCmdlet.ps1 -IncludeRule $avoidRules, $useRules
144-
$includeWildcard.Count | Should be 7
144+
$includeWildcard.Count | Should be 9
145145
}
146146
}
147147
}

0 commit comments

Comments
 (0)