Skip to content

Commit 6438a00

Browse files
committed
Update
1 parent 4c0b6c9 commit 6438a00

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

PowerShellModules/Pester.psm1

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,6 @@ function ShouldMatchCommandOutput
9191
}
9292
}
9393

94-
###############################################################################
95-
# Register the helpers as custom Pester operators (if Pester is loaded)
96-
###############################################################################
97-
if (Get-Command -Name Add-ShouldOperator -ErrorAction SilentlyContinue)
98-
{
99-
Add-ShouldOperator -Name ReturnZeroExitCode -InternalName ShouldReturnZeroExitCode -Test ${function:ShouldReturnZeroExitCode}
100-
Add-ShouldOperator -Name MatchCommandOutput -InternalName ShouldMatchCommandOutput -Test ${function:ShouldMatchCommandOutput}
101-
_LogMessage -Level 'DEBUG' -Message 'Custom Pester assertion operators registered.' -InvocationName 'ModuleInit'
102-
}
103-
10494
###############################################################################
10595
# Helper – run a single Pester file (mirrors your logging / error style)
10696
###############################################################################

0 commit comments

Comments
 (0)