Merge remote-tracking branch 'ups/master' into v3

This commit is contained in:
Daniel Imms
2017-08-08 18:50:34 -07:00
5 changed files with 24 additions and 7 deletions
+11
View File
@@ -144,5 +144,16 @@ describe('Buffer', () => {
});
});
});
describe('row and column increased', () => {
it('should resize properly', () => {
buffer.fillViewportRows();
buffer.resize(INIT_COLS + 5, INIT_ROWS + 5);
assert.equal(buffer.lines.length, INIT_ROWS + 5);
for (let i = 0; i < INIT_ROWS + 5; i++) {
assert.equal(buffer.lines.get(i).length, INIT_COLS + 5);
}
});
});
});
});