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 8cae573 commit 39cd0a8Copy full SHA for 39cd0a8
test/parallel/test-child-process-fork-exec-argv.js
@@ -1,5 +1,5 @@
1
'use strict';
2
-require('../common');
+const common = require('../common');
3
const assert = require('assert');
4
const child_process = require('child_process');
5
const spawn = child_process.spawn;
@@ -22,7 +22,7 @@ if (process.argv[2] === 'fork') {
22
out += chunk;
23
});
24
25
- child.on('exit', function() {
+ child.on('exit', common.mustCall(function() {
26
assert.deepStrictEqual(JSON.parse(out), execArgv);
27
- });
+ }));
28
}
0 commit comments