Skip to content

Commit

Permalink
Fix integ test
Browse files Browse the repository at this point in the history
  • Loading branch information
johlju committed Jul 29, 2024
1 parent 66f4549 commit 5ddeada
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tests/Integration/Syntax/v5/ShouldBeLessThan.v5.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Describe 'Should -BeLessThan' {
}

It 'Should convert `Should -ActualValue 1 -BeLessThan -ExpectedValue 2` correctly' {
Should -ActualValue 2 -BeLessThan -ExpectedValue 1
Should -ActualValue 1 -BeLessThan -ExpectedValue 2
}

It 'Should convert `Should -BeLessThan -ActualValue 1 -ExpectedValue 2` correctly' {
Expand Down Expand Up @@ -59,9 +59,15 @@ Describe 'Should -BeLessThan' {
Should -BeLessThan 2 'mock should test correct value' 1
}

It 'Should convert `Should 2 ''mock should test correct value'' 1 -BeLessThan` correctly' {
Should 2 'mock should test correct value' 1 -BeLessThan
}
<#
This was not supported in Pester 5.6.1. There it gave the error message:
RuntimeException: Legacy Should syntax (without dashes) is not supported in Pester 5.Please refer to migration guide at: https://pester.dev/docs/migrations/v3-to-v4
ParameterBindingException: Cannot retrieve the dynamic parameters for the cmdlet. Legacy Should syntax (without dashes) is not supported in Pester 5. Please refer to migration guide at: https://pester.dev/docs/migrations/v3-to-v4
#>
# It 'Should convert `Should 2 ''mock should test correct value'' 1 -BeLessThan` correctly' {
# Should 2 'mock should test correct value' 1 -BeLessThan
# }
}

Context 'When the tests are negated' {
Expand Down

0 comments on commit 5ddeada

Please sign in to comment.