The terminal works!

This commit is contained in:
Daniel Imms
2017-08-05 02:22:43 -07:00
parent 2104dccec5
commit 41c335c0e6
6 changed files with 48 additions and 45 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ describe('Buffer', () => {
describe('constructor', () => {
it('should create a CircularList with max length equal to scrollback, for its lines', () => {
assert.instanceOf(buffer.lines, CircularList);
assert.equal(buffer.lines.maxLength, terminal.scrollback);
assert.equal(buffer.lines.maxLength, terminal.options.scrollback);
});
it('should set the Buffer\'s scrollBottom value equal to the terminal\'s rows -1', () => {
assert.equal(buffer.scrollBottom, terminal.rows - 1);