Swap-Aggregator-Subgraph/node_modules/pull-stream/test/concat.js
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

19 lines
359 B
JavaScript

var test = require('tape')
var pull = require('../')
test('concat', function (t) {
var n = 0
pull(
pull.values('hello there this is a test'.split(/([aeiou])/)),
pull.through(function () {
n++
}),
pull.concat(function (err, mess) {
t.equal(mess, 'hello there this is a test')
t.equal(n, 17)
t.end()
})
)
})