Skip to content

Commit

Permalink
fix(tests): emit correct lines from transform (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjoDiaz authored and knownasilya committed Apr 10, 2018
1 parent 5b25eaa commit 2322ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/JSON2CSVTransform.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class JSON2CSVTransform extends Transform {
if (line === undefined) return;
const eoledLine = (this._hasWritten ? this.opts.eol : '')
+ line;
this.emit('line', eoledLine);
this.emit('line', line);
this.push(eoledLine);
this._hasWritten = true;
});
Expand Down

0 comments on commit 2322ddf

Please sign in to comment.