We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ee9d69 commit ec28fe6Copy full SHA for ec28fe6
test/parallel/test-child-process-fork-exec-argv.js
@@ -20,7 +20,7 @@
20
// USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22
'use strict';
23
-require('../common');
+const common = require('../common');
24
const assert = require('assert');
25
const child_process = require('child_process');
26
const spawn = child_process.spawn;
@@ -43,7 +43,7 @@ if (process.argv[2] === 'fork') {
43
out += chunk;
44
});
45
46
- child.on('exit', function() {
+ child.on('exit', common.mustCall(function() {
47
assert.deepStrictEqual(JSON.parse(out), execArgv);
48
- });
+ }));
49
}
0 commit comments