Files: 9d9abd26492b94a6b650b38e7db4ef41257d64d7 / 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