mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
test: add signal check to test-esm-cjs-main
PR-URL: https://github.com/nodejs/node/pull/25073 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
eef6504cf7
commit
dbdfc5d656
1 file changed
+2
-1
@@ -21,7 +21,8 @@ child.stdout.on('data', (data) => {
|
||||
assert.strictEqual(data.toString(), 'executed\n');
|
||||
validatedExecution = true;
|
||||
});
|
||||
child.on('close', common.mustCall((code, stdout) => {
|
||||
child.on('close', common.mustCall((code, signal) => {
|
||||
assert.strictEqual(validatedExecution, true);
|
||||
assert.strictEqual(code, 0);
|
||||
assert.strictEqual(signal, null);
|
||||
}));
|
||||
Reference in new issue
Block a user