UNPKG

297 BJavaScriptView Raw
1
2
3var pull = require('pull-stream')
4var cat = require('../')
5
6require('tape')('cat', function (t) {
7
8 cat([pull.values([1,2,3]), pull.values([4,5,6])])
9 .pipe(pull.collect(function (err, ary) {
10 console.log(err, ary)
11 t.notOk(err)
12 t.deepEqual(ary, [1,2,3,4,5,6])
13 t.end()
14 }))
15
16})