diff options
author | Rich Trott <rtrott@gmail.com> | 2021-03-26 08:51:08 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2021-04-01 23:14:29 -0700 |
commit | 330f25ef822dac6ed8a0afb3422bd920726eb43d (patch) | |
tree | bbf90ca3116946aba033d510364e0dbf209ae5b6 /test/tick-processor | |
parent | f0bf37317604061dc60ebf858d6ad4dfc313dcdc (diff) | |
download | node-new-330f25ef822dac6ed8a0afb3422bd920726eb43d.tar.gz |
test: prepare for consistent comma-dangle lint rule
Make changes so that tests will pass when the comma-dangle settings
applied to the rest of the code base are also applied to tests.
PR-URL: https://github.com/nodejs/node/pull/37930
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
Diffstat (limited to 'test/tick-processor')
-rw-r--r-- | test/tick-processor/test-tick-processor-polyfill-brokenfile.js | 4 | ||||
-rw-r--r-- | test/tick-processor/tick-processor-base.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/tick-processor/test-tick-processor-polyfill-brokenfile.js b/test/tick-processor/test-tick-processor-polyfill-brokenfile.js index f61bdbe9a1..98cbf5bb41 100644 --- a/test/tick-processor/test-tick-processor-polyfill-brokenfile.js +++ b/test/tick-processor/test-tick-processor-polyfill-brokenfile.js @@ -37,7 +37,7 @@ const proc = spawn(process.execPath, [ '--no_logfile_per_isolate', '--logfile=-', '--prof', - '-pe', code + '-pe', code, ], { stdio: ['ignore', 'pipe', 'inherit'] }); @@ -53,7 +53,7 @@ function runPolyfill(content) { const child = spawnSync( `${process.execPath}`, [ - '--prof-process', LOG_FILE + '--prof-process', LOG_FILE, ]); assert(WARN_REG_EXP.test(child.stderr.toString())); assert(WARN_DETAIL_REG_EXP.test(child.stderr.toString())); diff --git a/test/tick-processor/tick-processor-base.js b/test/tick-processor/tick-processor-base.js index 3394465525..d9f23ae7d7 100644 --- a/test/tick-processor/tick-processor-base.js +++ b/test/tick-processor/tick-processor-base.js @@ -15,7 +15,7 @@ function runTest(test) { '--no_logfile_per_isolate', '--logfile=-', '--prof', - '-pe', test.code + '-pe', test.code, ], { stdio: [ 'ignore', 'pipe', 'inherit' ] }); @@ -37,7 +37,7 @@ function match(pattern, parent, ticks, flags = []) { '--prof-process', '--call-graph-size=10', ...flags, - LOG_FILE + LOG_FILE, ], { stdio: [ 'ignore', 'pipe', 'inherit' ] }); |