Base ITerminal on interface in .d.ts

Part of #1221
This commit is contained in:
Daniel Imms
2018-01-19 09:48:33 -08:00
parent d33c340de5
commit 47df04976c
7 changed files with 96 additions and 69 deletions
-12
View File
@@ -13,18 +13,6 @@ describe('EventEmitter', () => {
eventEmitter = new EventEmitter();
});
describe('once', () => {
it('should trigger the listener only once', () => {
let count = 0;
const listener = () => count++;
eventEmitter.once('test', listener);
eventEmitter.emit('test');
assert.equal(count, 1);
eventEmitter.emit('test');
assert.equal(count, 1);
});
});
describe('emit', () => {
it('should emit events to listeners', () => {
let count1 = 0;