git ssb

2+

Dominic / pull-stream



Tree: 9e8b7714e605551f6eb22a0160194142cb7c3e47

Files: 9e8b7714e605551f6eb22a0160194142cb7c3e47 / 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