git ssb

3+

cel / ssb-npm-registry



Tree: 4f27567900a7b5b821bccc74e95bfc96c8233159

Files: 4f27567900a7b5b821bccc74e95bfc96c8233159 / 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