From 10fa3623ad2dd5d95eb458647897e3c0a91dda9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Arboleda?= Date: Sun, 29 Mar 2020 00:01:29 -0500 Subject: [PATCH] test: replace flag expose_internals to expose-internals PR-URL: https://github.com/nodejs/node/pull/32542 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Rich Trott --- test/parallel/test-child-process-bad-stdio.js | 2 +- test/parallel/test-child-process-exec-kill-throws.js | 2 +- test/parallel/test-child-process-http-socket-leak.js | 2 +- test/parallel/test-child-process-spawnsync-kill-signal.js | 2 +- test/parallel/test-child-process-spawnsync-shell.js | 2 +- test/parallel/test-child-process-validate-stdio.js | 2 +- test/parallel/test-child-process-windows-hide.js | 2 +- test/parallel/test-constants.js | 2 +- test/parallel/test-fs-open-flags.js | 2 +- test/parallel/test-http2-compat-socket.js | 2 +- test/parallel/test-http2-socket-proxy.js | 2 +- test/parallel/test-icu-stringwidth.js | 2 +- test/parallel/test-internal-util-decorate-error-stack.js | 2 +- test/parallel/test-os-checked-function.js | 2 +- test/parallel/test-readline-interface.js | 2 +- test/parallel/test-readline-tab-complete.js | 2 +- test/parallel/test-repl-history-perm.js | 2 +- test/parallel/test-repl.js | 2 +- test/parallel/test-safe-get-env.js | 2 +- test/parallel/test-stream-buffer-list.js | 2 +- test/parallel/test-stream2-readable-from-list.js | 2 +- test/parallel/test-tls-parse-cert-string.js | 2 +- test/parallel/test-tls-wrap-timeout.js | 2 +- test/parallel/test-util-internal.js | 2 +- 24 files changed, 24 insertions(+), 24 deletions(-) diff --git a/test/parallel/test-child-process-bad-stdio.js b/test/parallel/test-child-process-bad-stdio.js index 45294d7d82d4f6..1f382e2966043d 100644 --- a/test/parallel/test-child-process-bad-stdio.js +++ b/test/parallel/test-child-process-bad-stdio.js @@ -1,5 +1,5 @@ 'use strict'; -// Flags: --expose_internals +// Flags: --expose-internals const common = require('../common'); const assert = require('assert'); const cp = require('child_process'); diff --git a/test/parallel/test-child-process-exec-kill-throws.js b/test/parallel/test-child-process-exec-kill-throws.js index d6a0d4da19eae7..fbc9677f531068 100644 --- a/test/parallel/test-child-process-exec-kill-throws.js +++ b/test/parallel/test-child-process-exec-kill-throws.js @@ -1,5 +1,5 @@ 'use strict'; -// Flags: --expose_internals +// Flags: --expose-internals const common = require('../common'); const assert = require('assert'); const cp = require('child_process'); diff --git a/test/parallel/test-child-process-http-socket-leak.js b/test/parallel/test-child-process-http-socket-leak.js index 553a3277532b04..07cc0ebbf95e76 100644 --- a/test/parallel/test-child-process-http-socket-leak.js +++ b/test/parallel/test-child-process-http-socket-leak.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; diff --git a/test/parallel/test-child-process-spawnsync-kill-signal.js b/test/parallel/test-child-process-spawnsync-kill-signal.js index 61f9b63b3d7e57..d31d629c503e22 100644 --- a/test/parallel/test-child-process-spawnsync-kill-signal.js +++ b/test/parallel/test-child-process-spawnsync-kill-signal.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-child-process-spawnsync-shell.js b/test/parallel/test-child-process-spawnsync-shell.js index f94a67a804b82d..feb329e2ae6323 100644 --- a/test/parallel/test-child-process-spawnsync-shell.js +++ b/test/parallel/test-child-process-spawnsync-shell.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-child-process-validate-stdio.js b/test/parallel/test-child-process-validate-stdio.js index 5b0259f19bbd1f..ff214ee2d78262 100644 --- a/test/parallel/test-child-process-validate-stdio.js +++ b/test/parallel/test-child-process-validate-stdio.js @@ -1,5 +1,5 @@ 'use strict'; -// Flags: --expose_internals +// Flags: --expose-internals const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-child-process-windows-hide.js b/test/parallel/test-child-process-windows-hide.js index 67ed18d7338d83..ec00978408bb16 100644 --- a/test/parallel/test-child-process-windows-hide.js +++ b/test/parallel/test-child-process-windows-hide.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-constants.js b/test/parallel/test-constants.js index 62c62b101a10a8..08d1f1dbcdd0ab 100644 --- a/test/parallel/test-constants.js +++ b/test/parallel/test-constants.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; require('../common'); diff --git a/test/parallel/test-fs-open-flags.js b/test/parallel/test-fs-open-flags.js index 6daaef817bff66..bb5b7c6020c062 100644 --- a/test/parallel/test-fs-open-flags.js +++ b/test/parallel/test-fs-open-flags.js @@ -19,7 +19,7 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-http2-compat-socket.js b/test/parallel/test-http2-compat-socket.js index 0db2876738c766..95bc42180ef8e9 100644 --- a/test/parallel/test-http2-compat-socket.js +++ b/test/parallel/test-http2-compat-socket.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; diff --git a/test/parallel/test-http2-socket-proxy.js b/test/parallel/test-http2-socket-proxy.js index 745006831759d1..067909069e9d86 100644 --- a/test/parallel/test-http2-socket-proxy.js +++ b/test/parallel/test-http2-socket-proxy.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; diff --git a/test/parallel/test-icu-stringwidth.js b/test/parallel/test-icu-stringwidth.js index e2f22941158578..66d75c4cbe2cb2 100644 --- a/test/parallel/test-icu-stringwidth.js +++ b/test/parallel/test-icu-stringwidth.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-internal-util-decorate-error-stack.js b/test/parallel/test-internal-util-decorate-error-stack.js index 40fbf1d48caf20..b12d50bee79abc 100644 --- a/test/parallel/test-internal-util-decorate-error-stack.js +++ b/test/parallel/test-internal-util-decorate-error-stack.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; require('../common'); const fixtures = require('../common/fixtures'); diff --git a/test/parallel/test-os-checked-function.js b/test/parallel/test-os-checked-function.js index e0758437fe873f..819cdf1794155f 100644 --- a/test/parallel/test-os-checked-function.js +++ b/test/parallel/test-os-checked-function.js @@ -1,5 +1,5 @@ 'use strict'; -// Flags: --expose_internals +// Flags: --expose-internals require('../common'); const { internalBinding } = require('internal/test/binding'); diff --git a/test/parallel/test-readline-interface.js b/test/parallel/test-readline-interface.js index 3295997a6db688..2b0dcb0c383520 100644 --- a/test/parallel/test-readline-interface.js +++ b/test/parallel/test-readline-interface.js @@ -19,7 +19,7 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-readline-tab-complete.js b/test/parallel/test-readline-tab-complete.js index 5afa60e4dae9fd..d7a4bb7a9a0690 100644 --- a/test/parallel/test-readline-tab-complete.js +++ b/test/parallel/test-readline-tab-complete.js @@ -1,6 +1,6 @@ 'use strict'; -// Flags: --expose_internals +// Flags: --expose-internals const common = require('../common'); const readline = require('readline'); diff --git a/test/parallel/test-repl-history-perm.js b/test/parallel/test-repl-history-perm.js index 03ce1435d9ba4e..a6317d7c02181b 100644 --- a/test/parallel/test-repl-history-perm.js +++ b/test/parallel/test-repl-history-perm.js @@ -2,7 +2,7 @@ // Verifies that the REPL history file is created with mode 0600 -// Flags: --expose_internals +// Flags: --expose-internals const common = require('../common'); diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js index bbd410cadcee2d..9b8578293d9e52 100644 --- a/test/parallel/test-repl.js +++ b/test/parallel/test-repl.js @@ -560,7 +560,7 @@ const errorTests = [ expect: '... ... ... undefined' }, // REPL should get a normal require() function, not one that allows - // access to internal modules without the --expose_internals flag. + // access to internal modules without the --expose-internals flag. { send: 'require("internal/repl")', expect: [ diff --git a/test/parallel/test-safe-get-env.js b/test/parallel/test-safe-get-env.js index 0bee9971dbb3eb..f57dcb566d672d 100644 --- a/test/parallel/test-safe-get-env.js +++ b/test/parallel/test-safe-get-env.js @@ -1,5 +1,5 @@ 'use strict'; -// Flags: --expose_internals +// Flags: --expose-internals require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-stream-buffer-list.js b/test/parallel/test-stream-buffer-list.js index c78efeea24bf6b..5b495a41e08545 100644 --- a/test/parallel/test-stream-buffer-list.js +++ b/test/parallel/test-stream-buffer-list.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-stream2-readable-from-list.js b/test/parallel/test-stream2-readable-from-list.js index 0ab7c059d66a85..6564a01691f09e 100644 --- a/test/parallel/test-stream2-readable-from-list.js +++ b/test/parallel/test-stream2-readable-from-list.js @@ -19,7 +19,7 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-tls-parse-cert-string.js b/test/parallel/test-tls-parse-cert-string.js index a3062c227e6fd1..f5412cad4074c4 100644 --- a/test/parallel/test-tls-parse-cert-string.js +++ b/test/parallel/test-tls-parse-cert-string.js @@ -10,7 +10,7 @@ const { restoreStderr } = require('../common/hijackstdio'); const assert = require('assert'); -// Flags: --expose_internals +// Flags: --expose-internals const internalTLS = require('internal/tls'); const tls = require('tls'); diff --git a/test/parallel/test-tls-wrap-timeout.js b/test/parallel/test-tls-wrap-timeout.js index 6ae2c39c59b8d9..7b9cb4170c888f 100644 --- a/test/parallel/test-tls-wrap-timeout.js +++ b/test/parallel/test-tls-wrap-timeout.js @@ -1,4 +1,4 @@ -// Flags: --expose_internals +// Flags: --expose-internals 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-util-internal.js b/test/parallel/test-util-internal.js index f16ccfdbdc534f..cd38f3e7c57f44 100644 --- a/test/parallel/test-util-internal.js +++ b/test/parallel/test-util-internal.js @@ -1,5 +1,5 @@ 'use strict'; -// Flags: --expose_internals +// Flags: --expose-internals require('../common'); const assert = require('assert');