git ssb

2+

Dominic / pull-stream



Tree: eba107f6d7561de546256ac7059a75e7a6dea19a

Files: eba107f6d7561de546256ac7059a75e7a6dea19a / 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