diff --git a/test/parallel/test-promises-unhandled-proxy-rejections.js b/test/parallel/test-promises-unhandled-proxy-rejections.js index 31d2ed27ed0205..3a4f2d1ba8b3ac 100644 --- a/test/parallel/test-promises-unhandled-proxy-rejections.js +++ b/test/parallel/test-promises-unhandled-proxy-rejections.js @@ -15,7 +15,8 @@ const expectedPromiseWarning = ['Unhandled promise rejection. ' + 'not handled with .catch(). To terminate the ' + 'node process on unhandled promise rejection, ' + 'use the CLI flag `--unhandled-rejections=strict` (see ' + - 'https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)']; + 'https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). ' + + '(rejection id: 1)']; function throwErr() { throw new Error('Error from proxy'); diff --git a/test/parallel/test-promises-unhandled-symbol-rejections.js b/test/parallel/test-promises-unhandled-symbol-rejections.js index 3672c8700d6744..2851ce977fc4d0 100644 --- a/test/parallel/test-promises-unhandled-symbol-rejections.js +++ b/test/parallel/test-promises-unhandled-symbol-rejections.js @@ -16,7 +16,8 @@ const expectedPromiseWarning = ['Unhandled promise rejection. ' + 'not handled with .catch(). To terminate the ' + 'node process on unhandled promise rejection, ' + 'use the CLI flag `--unhandled-rejections=strict` (see ' + - 'https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)']; + 'https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). ' + + '(rejection id: 1)']; common.expectWarning({ DeprecationWarning: expectedDeprecationWarning,