git ssb

2+

Dominic / pull-stream



Tree: 0638fd964786330ea637fe10af73a9474d43493d

Files: 0638fd964786330ea637fe10af73a9474d43493d / test / map.js

355 bytesRaw
1
2var tape = require('tape')
3
4var pull = require('../')
5
6
7tape('map throughs ends stream', function (t) {
8 var err = new Error('unwholesome number')
9 pull(
10 pull.values([1,2,3,3.4,4]),
11 pull.map(function (e) {
12 if(e !== ~~e)
13 throw err
14 }),
15 pull.drain(null, function (_err) {
16 t.equal(_err, err)
17 t.end()
18 })
19 )
20})
21

Built with git-ssb-web