Skip to content

Commit

Permalink
fix: mock exit
Browse files Browse the repository at this point in the history
  • Loading branch information
denghongcai committed Dec 26, 2017
1 parent 777ecfa commit fae64d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/include/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
}

mockChildProcesses[mockChildProcesses.length - 1].on.args.forEach(function (handler) {
if (handler[0] === 'close') {
if (handler[0] === 'exit') {
handler[1](typeof data === "number" ? data : 0);
}
});
Expand Down

0 comments on commit fae64d2

Please sign in to comment.