Skip to content

Commit

Permalink
Remove blank output in PesterThrow.Tests.ps1 (#2460)
Browse files Browse the repository at this point in the history
  • Loading branch information
fflaten authored May 18, 2024
1 parent 87cfcea commit 30e85ad
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tst/functions/assertions/PesterThrow.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ InPesterModuleScope {
Context 'Assertion messages' {
It 'returns the correct assertion message when an exception is thrown' {
$err = { { throw } | Should -Not -Throw -Because 'reason' } | Verify-AssertionFailed
write-host ($err.Exception.Message -replace "(.*)", '')
$err.Exception.Message -replace "(`r|`n)" -replace '\s+', ' ' -replace ' "ScriptHalted"', '' -replace " from.*" | Verify-Equal "Expected no exception to be thrown, because reason, but an exception was thrown"
}
}
Expand Down

0 comments on commit 30e85ad

Please sign in to comment.