From 2b38221b4247cab956b688522decc9755b9d2c76 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Fri, 30 Oct 2020 11:16:24 -0700 Subject: [PATCH] fix uncaught/strict test Signed-off-by: Christopher Hiller --- test/integration/uncaught.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/uncaught.spec.js b/test/integration/uncaught.spec.js index 9c67dd16a9..24195310c2 100644 --- a/test/integration/uncaught.spec.js +++ b/test/integration/uncaught.spec.js @@ -198,7 +198,7 @@ describe('uncaught exceptions', function() { }); describe('when Node is in "strict" mode', function() { - it('should fail', async function() { + it('should fail with an uncaught exception', async function() { const [, promise] = invokeMochaAsync( [ resolveFixturePath('uncaught/unhandled'), @@ -210,7 +210,7 @@ describe('uncaught exceptions', function() { promise, 'when fulfilled', 'to have failed with output', - /'ERR_UNHANDLED_REJECTION'/ + /Uncaught Error: yikes/ ); }); });