mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
don't display chunked lines'
This commit is contained in:
@@ -258,11 +258,7 @@ export default ['$log', 'moment', function($log, moment){
|
|||||||
.split("\r\n");
|
.split("\r\n");
|
||||||
|
|
||||||
if (lineNums.length > lines.length) {
|
if (lineNums.length > lines.length) {
|
||||||
let padBy = lineNums.length - lines.length;
|
lineNums = lineNums.slice(0, lines.length);
|
||||||
|
|
||||||
for (let i = 0; i <= padBy; i++) {
|
|
||||||
lines.push("");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
lines = this.distributeColors(lines);
|
lines = this.distributeColors(lines);
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ describe('parseStdoutService', () => {
|
|||||||
end_line: 11,
|
end_line: 11,
|
||||||
stdout: "a\r\nb\r\nc..."
|
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);
|
let returnedEvent = parseStdoutService.getLineArr(mockEvent);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user