Sha256: c3d56b990b3b3187af6482318646042f6d8894423cf2f5091845e5c1f5b9348d

Contents?: true

Size: 483 Bytes

Versions: 6

Compression:

Stored size: 483 Bytes

Contents

var outpipe = require('../');
var test = require('tape');
var fs = require('fs');
var path = require('path');
var tmpdir = require('osenv').tmpdir();

test('outfile', function (t) {
    t.plan(2);
    var file = path.join(tmpdir, 'outpipe-' + Math.random());
    var p = outpipe(file);
    p.end('wow');
    
    p.once('exit', function () {
        fs.readFile(file, 'utf8', function (err, src) {
            t.ifError(err);
            t.equal(src, 'wow');
        });
    });
});

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
brwy_rails-0.0.6 test/dummy/node_modules/outpipe/test/outfile.js
brwy_rails-0.0.5 test/dummy/node_modules/outpipe/test/outfile.js
brwy_rails-0.0.4 test/dummy/node_modules/outpipe/test/outfile.js
brwy_rails-0.0.3 test/dummy/node_modules/outpipe/test/outfile.js
brwy_rails-0.0.2 test/dummy/node_modules/outpipe/test/outfile.js
brwy_rails-0.0.1 test/dummy/node_modules/outpipe/test/outfile.js