| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -108,7 +108,7 @@ function pipeLittle() { | |||
| 108 | 108 | console.error('pipe a little'); | |
| 109 | 109 | const w = new Writable(); | |
| 110 | 110 | let written = 0; | |
| 111 | - w.on('finish', function() { | ||
| 111 | + w.on('finish', () => { | ||
| 112 | 112 | assert.strictEqual(written, 200); | |
| 113 | 113 | setImmediate(read1234); | |
| 114 | 114 | }); | |
@@ -160,7 +160,7 @@ function pipe() { | |||
| 160 | 160 | written += chunk.length; | |
| 161 | 161 | cb(); | |
| 162 | 162 | }; | |
| 163 | - w.on('finish', function() { | ||
| 163 | + w.on('finish', () => { | ||
| 164 | 164 | console.error('written', written, totalPushed); | |
| 165 | 165 | assert.strictEqual(written, expectEndingData); | |
| 166 | 166 | assert.strictEqual(totalPushed, expectTotalData); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments