Skip to content

Commit

Permalink
Change Add-AssertionOperator to Add-ShouldOperator (actions#3446)
Browse files Browse the repository at this point in the history
  • Loading branch information
miketimofeev authored May 25, 2021
1 parent 39e317a commit 8e7629e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions images/win/scripts/ImageHelpers/TestsHelpers.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function ShouldMatchCommandOutput {
}
}

If (Get-Command -Name Add-AssertionOperator -ErrorAction SilentlyContinue) {
Add-AssertionOperator -Name ReturnZeroExitCode -InternalName ShouldReturnZeroExitCode -Test ${function:ShouldReturnZeroExitCode}
Add-AssertionOperator -Name MatchCommandOutput -InternalName ShouldMatchCommandOutput -Test ${function:ShouldMatchCommandOutput}
If (Get-Command -Name Add-ShouldOperator -ErrorAction SilentlyContinue) {
Add-ShouldOperator -Name ReturnZeroExitCode -InternalName ShouldReturnZeroExitCode -Test ${function:ShouldReturnZeroExitCode}
Add-ShouldOperator -Name MatchCommandOutput -InternalName ShouldMatchCommandOutput -Test ${function:ShouldMatchCommandOutput}
}

0 comments on commit 8e7629e

Please sign in to comment.