This commit is contained in:
IllusionMH
2020-09-01 02:37:25 +03:00
parent cf0b7ce2d0
commit 8d9eda5d0a
+6
View File
@@ -1533,6 +1533,12 @@ describe('Terminal', () => {
});
});
});
it('constructor options validation', () => {
expect(() => new TestTerminal({cursorStyle: undefined})).to.not.throw();
expect(() => new TestTerminal({tabStopWidth: 0})).to.throw('value: 0');
expect(() => new TestTerminal({scrollback: -10})).to.throw('value: -10');
expect(() => new TestTerminal({scrollSensitivity: 0})).to.throw('value: 0');
});
});
class TestLinkifier extends Linkifier {