| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c217b43 commit c6618df
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,12 +21,19 @@ const t = new Transform({ | |||
| 21 | 21 | flush: _flush | |
| 22 | 22 | }); | |
| 23 | 23 | ||
| 24 | + const t2 = new Transform({}); | ||
| 25 | + | ||
| 24 | 26 | t.end(Buffer.from('blerg')); | |
| 25 | 27 | t.resume(); | |
| 26 | 28 | ||
| 27 | - process.on('exit', function() { | ||
| 29 | + assert.throws(() => { | ||
| 30 | + t2.end(Buffer.from('blerg')); | ||
| 31 | + }, /^Error: _transform\(\) is not implemented$/); | ||
| 32 | + | ||
| 33 | + | ||
| 34 | + process.on('exit', () => { | ||
| 28 | 35 | assert.strictEqual(t._transform, _transform); | |
| 29 | 36 | assert.strictEqual(t._flush, _flush); | |
| 30 | - assert(_transformCalled); | ||
| 31 | - assert(_flushCalled); | ||
| 37 | + assert.strictEqual(_transformCalled, true); | ||
| 38 | + assert.strictEqual(_flushCalled, true); | ||
| 32 | 39 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments