git ssb

3+

cel / ssb-npm-registry



Tree: d2f2697f296dd39aed6a8b63c6d04a736a7db5b3

Files: d2f2697f296dd39aed6a8b63c6d04a736a7db5b3 / node_modules / stream-to-pull-stream / test / collect.js

345 bytesRaw
1var pull = require('pull-stream')
2var through = require('through')
3var toPull = require('../')
4
5
6require('tape')('collect', function (t) {
7
8 var values = [.1, .4, .6, 0.7, .94]
9 pull(
10 pull.values(values),
11 toPull(through()),
12 pull.collect(function (err, _values) {
13 t.deepEqual(_values, values)
14 t.end()
15 })
16 )
17
18})
19

Built with git-ssb-web