mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: use destructuring and remove unused arguments
Use destructuring consistently and remove unused function arguments in test-pipewrap.js PR-URL: https://github.com/nodejs/node/pull/24375 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
1 parent
cdda7f4f18
commit
7e2a2849db
1 file changed
+2
-2
@@ -8,7 +8,7 @@ const assert = require('assert');
|
||||
const tick = require('../common/tick');
|
||||
const initHooks = require('./init-hooks');
|
||||
const { checkInvocations } = require('./hook-checks');
|
||||
const spawn = require('child_process').spawn;
|
||||
const { spawn } = require('child_process');
|
||||
|
||||
if (!common.isMainThread)
|
||||
common.skip('Worker bootstrapping works differently -> different async IDs');
|
||||
@@ -45,7 +45,7 @@ checkInvocations(processwrap, { init: 1 },
|
||||
checkInvocations(x, { init: 1 }, 'pipe wrap when sleep.spawn was called');
|
||||
});
|
||||
|
||||
function onsleepExit(code) {
|
||||
function onsleepExit() {
|
||||
checkInvocations(processwrap, { init: 1, before: 1 },
|
||||
'processwrap while in onsleepExit callback');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user