mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-04 17:17:23 +08:00
[macOS] Change Add-AssertionOperator to Add-ShouldOperator (#3447)
This commit is contained in:
@@ -78,8 +78,8 @@ function ShouldReturnZeroExitCode {
|
||||
}
|
||||
}
|
||||
|
||||
If (Get-Command -Name Add-AssertionOperator -ErrorAction SilentlyContinue) {
|
||||
Add-AssertionOperator -Name ReturnZeroExitCode -InternalName ShouldReturnZeroExitCode -Test ${function:ShouldReturnZeroExitCode}
|
||||
If (Get-Command -Name Add-ShouldOperator -ErrorAction SilentlyContinue) {
|
||||
Add-ShouldOperator -Name ReturnZeroExitCode -InternalName ShouldReturnZeroExitCode -Test ${function:ShouldReturnZeroExitCode}
|
||||
}
|
||||
|
||||
function Invoke-PesterTests {
|
||||
|
||||
Reference in New Issue
Block a user