diff options
| author | pack <pack@packgekko.xyz> | 2026-08-09 10:54:08 +0000 |
|---|---|---|
| committer | pack <pack@packgekko.xyz> | 2026-08-09 10:54:08 +0000 |
| commit | d3adc16a08d95d6e331de55d7d3bf05a66a874a8 (patch) | |
| tree | a2dabd199501e67c547c2ce79e1374ca3aa55443 /node_modules/simple-concat/test/basic.js | |
| parent | 55a4f1fc869e41aca748c63d3018f0448b1606e0 (diff) | |
| download | crud-d3adc16a08d95d6e331de55d7d3bf05a66a874a8.tar.gz | |
stop tracking node_modules/
Diffstat (limited to 'node_modules/simple-concat/test/basic.js')
| -rw-r--r-- | node_modules/simple-concat/test/basic.js | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/node_modules/simple-concat/test/basic.js b/node_modules/simple-concat/test/basic.js deleted file mode 100644 index 4bf6f9c..0000000 --- a/node_modules/simple-concat/test/basic.js +++ /dev/null @@ -1,41 +0,0 @@ -var concat = require('../') -var stream = require('stream') -var test = require('tape') - -test('basic', function (t) { - t.plan(2) - var s = new stream.PassThrough() - concat(s, function (err, buf) { - t.error(err) - t.deepEqual(buf, Buffer.from('abc123456789')) - }) - s.write('abc') - setTimeout(function () { - s.write('123') - }, 10) - setTimeout(function () { - s.write('456') - }, 20) - setTimeout(function () { - s.end('789') - }, 30) -}) - -test('error', function (t) { - t.plan(2) - var s = new stream.PassThrough() - concat(s, function (err, buf) { - t.ok(err, 'got expected error') - t.ok(!buf) - }) - s.write('abc') - setTimeout(function () { - s.write('123') - }, 10) - setTimeout(function () { - s.write('456') - }, 20) - setTimeout(function () { - s.emit('error', new Error('error')) - }, 30) -}) |