don't display chunked lines'

This commit is contained in:
John Mitchell 2017-04-18 12:56:22 -04:00
parent 7de092ff37
commit ea0f7ad0de
2 changed files with 2 additions and 6 deletions

View File

@ -258,11 +258,7 @@ export default ['$log', 'moment', function($log, moment){
.split("\r\n");
if (lineNums.length > lines.length) {
let padBy = lineNums.length - lines.length;
for (let i = 0; i <= padBy; i++) {
lines.push("");
}
lineNums = lineNums.slice(0, lines.length);
}
lines = this.distributeColors(lines);

View File

@ -129,7 +129,7 @@ describe('parseStdoutService', () => {
end_line: 11,
stdout: "a\r\nb\r\nc..."
};
let expectedReturn = [[8, "a"],[9, "b"], [10,"c..."], [11, ""]];
let expectedReturn = [[8, "a"],[9, "b"], [10,"c..."]];
let returnedEvent = parseStdoutService.getLineArr(mockEvent);