From 8dd6faf126ede3063971c6adeb7e95c413ad083b Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com> Date: Mon, 24 May 2021 21:37:55 +0300 Subject: [PATCH] [macOS] Change Add-AssertionOperator to Add-ShouldOperator (#3447) --- images/macos/helpers/Tests.Helpers.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/macos/helpers/Tests.Helpers.psm1 b/images/macos/helpers/Tests.Helpers.psm1 index 718933e5d103..4f585b055c2e 100644 --- a/images/macos/helpers/Tests.Helpers.psm1 +++ b/images/macos/helpers/Tests.Helpers.psm1 @@ -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 {