Files: 0638fd964786330ea637fe10af73a9474d43493d / test / concat.js
359 bytesRaw
1 | var test = require('tape') |
2 | var pull = require('../') |
3 | |
4 | test('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