| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent adb2d61 commit 1389a4f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -81,7 +81,7 @@ var stdinStdout = ''; | |||
| 81 | 81 | stdinProc.stdout.on('data', function(d) { | |
| 82 | 82 | stdinStdout += d; | |
| 83 | 83 | }); | |
| 84 | - stdinProc.on('exit', function(code) { | ||
| 84 | + stdinProc.on('close', function(code) { | ||
| 85 | 85 | assert.equal(code, 0); | |
| 86 | 86 | assert.equal(stdinStdout, 'A\nhello\n'); | |
| 87 | 87 | }); | |
@@ -97,7 +97,7 @@ var replStdout = ''; | |||
| 97 | 97 | replProc.stdout.on('data', function(d) { | |
| 98 | 98 | replStdout += d; | |
| 99 | 99 | }); | |
| 100 | - replProc.on('exit', function(code) { | ||
| 100 | + replProc.on('close', function(code) { | ||
| 101 | 101 | assert.equal(code, 0); | |
| 102 | 102 | const output = [ | |
| 103 | 103 | 'A', | |
| Back | FazBrowse Home | New Git URL |
0 commit comments