This commit is contained in:
Simon Priet
2021-09-05 22:53:58 +02:00
commit 9e2991e668
17888 changed files with 1263126 additions and 0 deletions

19
node_modules/outpipe/test/outfile.js generated vendored Normal file
View File

@@ -0,0 +1,19 @@
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');
});
});
});