Convert cursormove to EventEmitter2

This commit is contained in:
Daniel Imms
2019-04-09 19:31:59 -07:00
parent a86c2943b8
commit 8e5d372b81
3 changed files with 19 additions and 3 deletions
+10
View File
@@ -85,6 +85,16 @@ describe('term.js addons', () => {
});
});
describe('cursormove', () => {
it('should emit a cursormove event', (done) => {
term.on('cursormove', () => {
done();
});
term.write('foo');
});
});
describe(`keypress (including 'key' event)`, () => {
it('should receive a string and event object', (done) => {
let steps = 0;