Skip to content

Commit 2322ddf

Browse files
juanjoDiazknownasilya
authored andcommitted
fix(tests): emit correct lines from transform (#282)
1 parent 5b25eaa commit 2322ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/JSON2CSVTransform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class JSON2CSVTransform extends Transform {
154154
if (line === undefined) return;
155155
const eoledLine = (this._hasWritten ? this.opts.eol : '')
156156
+ line;
157-
this.emit('line', eoledLine);
157+
this.emit('line', line);
158158
this.push(eoledLine);
159159
this._hasWritten = true;
160160
});

0 commit comments

Comments
 (0)