Skip to content

Commit

Permalink
Fix PowerShell tests for Pwsh v7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardog committed Feb 17, 2024
1 parent 6e9ff9a commit b3e0912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gsudo.Wrappers.Tests/Invoke-gsudo.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Describe "PS Invoke-Gsudo (PSv$($PSVersionTable.PSVersion.Major))" {
}

It "It throws with .Net Exceptions" {
{ Invoke-gsudo { [int]::Parse('foo') } } | Should -throw "*Input string was not*"
{ Invoke-gsudo { [int]::Parse('foo') } } | Should -throw "*nput string*"
}

It "It throws when ErrorAction = Stop" {
Expand Down

0 comments on commit b3e0912

Please sign in to comment.