Files: d2f2697f296dd39aed6a8b63c6d04a736a7db5b3 / node_modules / stream-to-pull-stream / test / collect.js
345 bytesRaw
1 | var pull = require('pull-stream') |
2 | var through = require('through') |
3 | var toPull = require('../') |
4 | |
5 | |
6 | require('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