Skip to content

Commit

Permalink
Add null encoding when writing to streams on close
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregg Van Hove committed Dec 4, 2018
1 parent 791267b commit 82b7db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jasmine.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Jasmine.prototype.exitCodeCompletion = function(passed) {
var streams = [process.stdout, process.stderr];
var writesToWait = streams.length;
streams.forEach(function(stream) {
stream.write('', exitIfAllStreamsCompleted);
stream.write('', null, exitIfAllStreamsCompleted);
});
function exitIfAllStreamsCompleted() {
writesToWait--;
Expand Down

0 comments on commit 82b7db2

Please sign in to comment.