mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Change Add-AssertionOperator to Add-ShouldOperator (#3446)
This commit is contained in:
@@ -128,7 +128,7 @@ function ShouldMatchCommandOutput {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
If (Get-Command -Name Add-AssertionOperator -ErrorAction SilentlyContinue) {
|
If (Get-Command -Name Add-ShouldOperator -ErrorAction SilentlyContinue) {
|
||||||
Add-AssertionOperator -Name ReturnZeroExitCode -InternalName ShouldReturnZeroExitCode -Test ${function:ShouldReturnZeroExitCode}
|
Add-ShouldOperator -Name ReturnZeroExitCode -InternalName ShouldReturnZeroExitCode -Test ${function:ShouldReturnZeroExitCode}
|
||||||
Add-AssertionOperator -Name MatchCommandOutput -InternalName ShouldMatchCommandOutput -Test ${function:ShouldMatchCommandOutput}
|
Add-ShouldOperator -Name MatchCommandOutput -InternalName ShouldMatchCommandOutput -Test ${function:ShouldMatchCommandOutput}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user