| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6a6b3af commit 166aa8a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -61,8 +61,13 @@ const MB = KB * KB; | |||
| 61 | 61 | })); | |
| 62 | 62 | }); | |
| 63 | 63 | ||
| 64 | + let wcBuf = ''; | ||
| 64 | 65 | wc.stdout.on('data', common.mustCall((data) => { | |
| 66 | + wcBuf += data; | ||
| 67 | + })); | ||
| 68 | + | ||
| 69 | + wc.on('close', common.mustCall(() => { | ||
| 65 | 70 | // Grep always adds one extra byte at the end. | |
| 66 | - assert.strictEqual(data.toString().trim(), (MB + 1).toString()); | ||
| 71 | + assert.strictEqual(wcBuf.trim(), (MB + 1).toString()); | ||
| 67 | 72 | })); | |
| 68 | 73 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments