You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
345 B
18 lines
345 B
var pull = require('pull-stream') |
|
var through = require('through') |
|
var toPull = require('../') |
|
|
|
|
|
require('tape')('collect', function (t) { |
|
|
|
var values = [.1, .4, .6, 0.7, .94] |
|
pull( |
|
pull.values(values), |
|
toPull(through()), |
|
pull.collect(function (err, _values) { |
|
t.deepEqual(_values, values) |
|
t.end() |
|
}) |
|
) |
|
|
|
})
|
|
|