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/parallel/test-v8-coverage.js | |
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/parallel/test-v8-coverage.js')
-rw-r--r-- | test/parallel/test-v8-coverage.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/parallel/test-v8-coverage.js b/test/parallel/test-v8-coverage.js index 2e70ce91fe..ca5301b8bd 100644 --- a/test/parallel/test-v8-coverage.js +++ b/test/parallel/test-v8-coverage.js @@ -20,7 +20,7 @@ function nextdir() { { const coverageDirectory = path.join(tmpdir.path, nextdir()); const output = spawnSync(process.execPath, [ - require.resolve('../fixtures/v8-coverage/basic') + require.resolve('../fixtures/v8-coverage/basic'), ], { env: { ...process.env, NODE_V8_COVERAGE: coverageDirectory } }); if (output.status !== 0) { console.log(output.stderr.toString()); @@ -39,7 +39,7 @@ function nextdir() { { const coverageDirectory = path.join(tmpdir.path, nextdir()); const output = spawnSync(process.execPath, [ - require.resolve('../fixtures/v8-coverage/throw') + require.resolve('../fixtures/v8-coverage/throw'), ], { env: { ...process.env, NODE_V8_COVERAGE: coverageDirectory } }); if (output.status !== 1) { console.log(output.stderr.toString()); @@ -57,7 +57,7 @@ function nextdir() { { const coverageDirectory = path.join(tmpdir.path, nextdir()); const output = spawnSync(process.execPath, [ - require.resolve('../fixtures/v8-coverage/exit-1') + require.resolve('../fixtures/v8-coverage/exit-1'), ], { env: { ...process.env, NODE_V8_COVERAGE: coverageDirectory } }); if (output.status !== 1) { console.log(output.stderr.toString()); @@ -76,7 +76,7 @@ function nextdir() { { const coverageDirectory = path.join(tmpdir.path, nextdir()); const output = spawnSync(process.execPath, [ - require.resolve('../fixtures/v8-coverage/sigint') + require.resolve('../fixtures/v8-coverage/sigint'), ], { env: { ...process.env, NODE_V8_COVERAGE: coverageDirectory } }); if (!common.isWindows) { if (output.signal !== 'SIGINT') { @@ -97,7 +97,7 @@ function nextdir() { { const coverageDirectory = path.join(tmpdir.path, nextdir()); const output = spawnSync(process.execPath, [ - require.resolve('../fixtures/v8-coverage/spawn-subprocess') + require.resolve('../fixtures/v8-coverage/spawn-subprocess'), ], { env: { ...process.env, NODE_V8_COVERAGE: coverageDirectory } }); if (output.status !== 0) { console.log(output.stderr.toString()); @@ -117,7 +117,7 @@ function nextdir() { { const coverageDirectory = path.join(tmpdir.path, nextdir()); const output = spawnSync(process.execPath, [ - require.resolve('../fixtures/v8-coverage/worker') + require.resolve('../fixtures/v8-coverage/worker'), ], { env: { ...process.env, NODE_V8_COVERAGE: coverageDirectory } }); if (output.status !== 0) { console.log(output.stderr.toString()); @@ -137,7 +137,7 @@ function nextdir() { { const coverageDirectory = path.join(tmpdir.path, nextdir()); const output = spawnSync(process.execPath, [ - require.resolve('../fixtures/v8-coverage/spawn-subprocess-no-cov') + require.resolve('../fixtures/v8-coverage/spawn-subprocess-no-cov'), ], { env: { ...process.env, NODE_V8_COVERAGE: coverageDirectory } }); if (output.status !== 0) { console.log(output.stderr.toString()); @@ -153,7 +153,7 @@ function nextdir() { { const coverageDirectory = path.join(tmpdir.path, nextdir()); const output = spawnSync(process.execPath, [ - require.resolve('../fixtures/v8-coverage/async-hooks') + require.resolve('../fixtures/v8-coverage/async-hooks'), ], { env: { ...process.env, NODE_V8_COVERAGE: coverageDirectory } }); if (output.status !== 0) { console.log(output.stderr.toString()); @@ -172,7 +172,7 @@ function nextdir() { const coverageDirectory = nextdir(); const absoluteCoverageDirectory = path.join(tmpdir.path, coverageDirectory); const output = spawnSync(process.execPath, [ - require.resolve('../fixtures/v8-coverage/basic') + require.resolve('../fixtures/v8-coverage/basic'), ], { cwd: tmpdir.path, env: { ...process.env, NODE_V8_COVERAGE: coverageDirectory } |