Skip to content

Commit 4ccbbee

Browse files
author
kborle
committed
Fixes test case for AvoidInvokingEmptyMember violation description
1 parent af1bf9f commit 4ccbbee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Rules/AvoidInvokingEmptyMembers.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Import-Module PSScriptAnalyzer
22

3-
$violationMessage = "() has non-constant members. Invoking empty members may cause bugs in the script."
3+
$violationMessage = "() has non-constant members. Invoking non-constant members may cause bugs in the script."
44
$violationName = "PSAvoidInvokingEmptyMembers"
55
$directory = Split-Path -Parent $MyInvocation.MyCommand.Path
66
$violations = Invoke-ScriptAnalyzer $directory\AvoidInvokingEmptyMembers.ps1 | Where-Object {$_.RuleName -eq $violationName}

0 commit comments

Comments
 (0)