From 30e85adb23b692558b137e3820c30dc13c0ffcc9 Mon Sep 17 00:00:00 2001 From: Frode Flaten <3436158+fflaten@users.noreply.github.com> Date: Sat, 18 May 2024 13:02:20 +0200 Subject: [PATCH] Remove blank output in PesterThrow.Tests.ps1 (#2460) --- tst/functions/assertions/PesterThrow.Tests.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/tst/functions/assertions/PesterThrow.Tests.ps1 b/tst/functions/assertions/PesterThrow.Tests.ps1 index 38eb2239d..0b15e28fd 100644 --- a/tst/functions/assertions/PesterThrow.Tests.ps1 +++ b/tst/functions/assertions/PesterThrow.Tests.ps1 @@ -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" } }