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.
21 lines
383 B
21 lines
383 B
|
|
|
|
var pull = require('../') |
|
require('tape')('through - onEnd', function (t) { |
|
t.plan(2) |
|
pull( |
|
pull.infinite(), |
|
pull.through(null, function (err) { |
|
console.log('end') |
|
t.ok(true) |
|
process.nextTick(function () { |
|
t.end() |
|
}) |
|
}), |
|
pull.take(10), |
|
pull.collect(function (err, ary) { |
|
console.log(ary) |
|
t.ok(true) |
|
}) |
|
) |
|
})
|
|
|