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