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 4f3ecc6 commit 01e1432Copy full SHA for 01e1432
Tests/Engine/RuleSuppression.tests.ps1
@@ -58,10 +58,13 @@ Describe "RuleSuppressionWithoutScope" {
58
}
59
60
61
- Context "Rule suppression within DSC Configuration definition" {
62
- It "Suppresses rule" {
63
- $suppressedRule = Invoke-ScriptAnalyzer -ScriptDefinition $ruleSuppressionInConfiguration -SuppressedOnly
64
- $suppressedRule.Count | Should Be 1
+ if (($PSVersionTable.PSVersion -ge [Version]'5.0'))
+ {
+ Context "Rule suppression within DSC Configuration definition" {
+ It "Suppresses rule" {
65
+ $suppressedRule = Invoke-ScriptAnalyzer -ScriptDefinition $ruleSuppressionInConfiguration -SuppressedOnly
66
+ $suppressedRule.Count | Should Be 1
67
+ }
68
69
70
0 commit comments