Skip to content

Commit 59b23e7

Browse files
committed
assert key values
1 parent c88256b commit 59b23e7

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

test/sequential/test-child-process-execsync.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,15 @@ assert.strictEqual(ret, `${msg}\n`);
113113
{
114114
const args = ['-e', 'process.exit(1)'];
115115
const spawnSyncResult = spawnSync(process.execPath, args);
116-
const spawnSyncKeys = Object.keys(spawnSyncResult);
116+
const spawnSyncKeys = Object.keys(spawnSyncResult).sort();
117+
assert.deepStrictEqual(spawnSyncKeys, [
118+
'output',
119+
'pid',
120+
'signal',
121+
'status',
122+
'stderr',
123+
'stdout'
124+
]);
117125

118126
assert.throws(() => {
119127
execFileSync(process.execPath, args);

0 commit comments

Comments
 (0)