From 4d533858cf8425799d7a60fa1a0324a3b7b9444a Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Thu, 3 Sep 2020 13:25:33 -0700 Subject: [PATCH] test: make .out checks embedder-friendly PR-URL: https://github.com/nodejs/node/pull/35040 Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Rich Trott --- test/message/esm_loader_not_found.out | 2 +- test/message/esm_loader_not_found_cjs_hint_relative.out | 2 +- test/message/esm_loader_syntax_error.out | 2 +- test/message/promise_unhandled_warn_with_error.out | 2 +- test/pseudo-tty/test-tty-color-support-warning-2.out | 2 +- test/pseudo-tty/test-tty-color-support-warning.out | 2 +- test/pseudo-tty/test-tty-color-support.out | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/message/esm_loader_not_found.out b/test/message/esm_loader_not_found.out index 60abb529a3c871..26292512d9b002 100644 --- a/test/message/esm_loader_not_found.out +++ b/test/message/esm_loader_not_found.out @@ -1,5 +1,5 @@ (node:*) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time -(Use `node --trace-warnings ...` to show where the warning was created) +(Use `* --trace-warnings ...` to show where the warning was created) internal/process/esm_loader.js:* internalBinding('errors').triggerUncaughtException( ^ diff --git a/test/message/esm_loader_not_found_cjs_hint_relative.out b/test/message/esm_loader_not_found_cjs_hint_relative.out index f7460c31416dc9..1c43c0d3a2eb31 100644 --- a/test/message/esm_loader_not_found_cjs_hint_relative.out +++ b/test/message/esm_loader_not_found_cjs_hint_relative.out @@ -1,5 +1,5 @@ (node:*) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time -(Use `node --trace-warnings ...` to show where the warning was created) +(Use `* --trace-warnings ...` to show where the warning was created) internal/process/esm_loader.js:* internalBinding('errors').triggerUncaughtException( ^ diff --git a/test/message/esm_loader_syntax_error.out b/test/message/esm_loader_syntax_error.out index 6201de95208ff3..d6c6df0a338c84 100644 --- a/test/message/esm_loader_syntax_error.out +++ b/test/message/esm_loader_syntax_error.out @@ -1,5 +1,5 @@ (node:*) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time -(Use `node --trace-warnings ...` to show where the warning was created) +(Use `* --trace-warnings ...` to show where the warning was created) file://*/test/fixtures/es-module-loaders/syntax-error.mjs:2 await async () => 0; ^^^^^^^^^^^^^ diff --git a/test/message/promise_unhandled_warn_with_error.out b/test/message/promise_unhandled_warn_with_error.out index b539adb2d1e769..66c98c57f71717 100644 --- a/test/message/promise_unhandled_warn_with_error.out +++ b/test/message/promise_unhandled_warn_with_error.out @@ -6,5 +6,5 @@ at * at * at * -(Use `node --trace-warnings ...` to show where the warning was created) +(Use `* --trace-warnings ...` to show where the warning was created) *UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was 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) \ No newline at end of file diff --git a/test/pseudo-tty/test-tty-color-support-warning-2.out b/test/pseudo-tty/test-tty-color-support-warning-2.out index d17fa99b96974a..37b470a5f108f9 100644 --- a/test/pseudo-tty/test-tty-color-support-warning-2.out +++ b/test/pseudo-tty/test-tty-color-support-warning-2.out @@ -1,3 +1,3 @@ (node:*) Warning: The 'NODE_DISABLE_COLORS' env is ignored due to the 'FORCE_COLOR' env being set. -(Use `node --trace-warnings ...` to show where the warning was created) +(Use `* --trace-warnings ...` to show where the warning was created) diff --git a/test/pseudo-tty/test-tty-color-support-warning.out b/test/pseudo-tty/test-tty-color-support-warning.out index 7a9df4725486d2..b25d2e42cf7244 100644 --- a/test/pseudo-tty/test-tty-color-support-warning.out +++ b/test/pseudo-tty/test-tty-color-support-warning.out @@ -1,3 +1,3 @@ (node:*) Warning: The 'NODE_DISABLE_COLORS' and 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set. -(Use `node --trace-warnings ...` to show where the warning was created) +(Use `* --trace-warnings ...` to show where the warning was created) diff --git a/test/pseudo-tty/test-tty-color-support.out b/test/pseudo-tty/test-tty-color-support.out index 86ed488ee8c1b2..df5831c555be19 100644 --- a/test/pseudo-tty/test-tty-color-support.out +++ b/test/pseudo-tty/test-tty-color-support.out @@ -1,2 +1,2 @@ (node:*) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set. -(Use `node --trace-warnings ...` to show where the warning was created) +(Use `* --trace-warnings ...` to show where the warning was created)