Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: wrap functions containing assertions inside a common.mustCall
  • Loading branch information
sagirk committed Nov 21, 2018
commit 91fa0e1a617ff6aec4904dbe738b0769afc3e408
4 changes: 2 additions & 2 deletions test/parallel/test-child-process-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ child.stdout.on('data', (chunk) => {
response += chunk;
});

process.on('exit', () => {
process.on('exit', common.mustCall(() => {
assert.ok(response.includes('HELLO=WORLD'));
assert.ok(response.includes('FOO=BAR'));
assert.ok(!response.includes('UNDEFINED=undefined'));
assert.ok(response.includes('NULL=null'));
assert.ok(response.includes(`EMPTY=${os.EOL}`));
});
}));