More formatting

This commit is contained in:
Daniel Imms 2019-10-23 16:57:22 -07:00
parent 4567067b08
commit ebc27c4410

View file

@ -203,7 +203,7 @@ suite('window namespace tests', () => {
const term1Write = new EventEmitter<string>();
const term1Close = new EventEmitter<void>();
window.createTerminal({name: 'test1', pty: {
window.createTerminal({ name: 'test1', pty: {
onDidWrite: term1Write.event,
onDidClose: term1Close.event,
open: async () => {
@ -215,21 +215,19 @@ suite('window namespace tests', () => {
const term2Write = new EventEmitter<string>();
const term2Close = new EventEmitter<void>();
window.createTerminal({
name: 'test2', pty: {
onDidWrite: term2Write.event,
onDidClose: term2Close.event,
open: async () => {
term2Write.fire('write2');
window.createTerminal({ name: 'test2', pty: {
onDidWrite: term2Write.event,
onDidClose: term2Close.event,
open: async () => {
term2Write.fire('write2');
// Wait until the data is written
await new Promise<void>(resolve => { resolveOnceDataWritten = resolve; });
// Wait until the data is written
await new Promise<void>(resolve => { resolveOnceDataWritten = resolve; });
term2Close.fire();
},
close: () => { }
}
});
term2Close.fire();
},
close: () => { }
}});
},
close: () => { }
}});