UNPKG

359 BJavaScriptView Raw
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})