Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.527 kB
###
Test CSV - Copyright David Worms <open@adaltas.com> (BSD Licensed)
###
fs = require 'fs'
should = require 'should'
csv = if process.env.CSV_COV then require '../lib-cov' else require '../src'
generator = if process.env.CSV_COV then require '../lib-cov/generator' else require '../src/generator'
describe 'pipe', ->
it 'should pipe to a file writable stream', (next) ->
path = "/tmp/large.out"
w = generator(start: true, duration: 1000).pipe csv().to.path path
w.on 'close', ->
fs.unlink path, next
Jump to Line
Something went wrong with that request. Please try again.