git ssb

2+

Dominic / pull-stream



Tree: 53993d4b470f0742ad15adb19ec03653e415da6a

Files: 53993d4b470f0742ad15adb19ec03653e415da6a / test / concat.js

359 bytesRaw
1var test = require('tape')
2var pull = require('../')
3
4test('concat', function (t) {
5 var n = 0
6 pull(
7 pull.values('hello there this is a test'.split(/([aeiou])/)),
8 pull.through(function () {
9 n++
10 }),
11 pull.concat(function (err, mess) {
12 t.equal(mess, 'hello there this is a test')
13 t.equal(n, 17)
14 t.end()
15 })
16 )
17
18})
19

Built with git-ssb-web