Move and refactor child_process tests

This commit is contained in:
Asher
2019-02-19 15:30:56 -06:00
parent d80f82ab98
commit 3685e6555c
6 changed files with 103 additions and 22 deletions

View File

@@ -42,9 +42,9 @@ class Pty implements nodePty.IPty {
ptyProc.on("data", (data) => ae.emit("data", data));
ae.on("resize", (cols, rows) => ptyProc.resize(cols, rows));
ae.on("write", (data) => ptyProc.write(data));
ae.on("kill", (signal) => ptyProc.kill(signal));
ae.on("resize", (cols: number, rows: number) => ptyProc.resize(cols, rows));
ae.on("write", (data: string) => ptyProc.write(data));
ae.on("kill", (signal: string) => ptyProc.kill(signal));
return {
onDidDispose: (cb): void => ptyProc.on("exit", cb),