This commit is contained in:
Tiệp Sunflower
2023-03-06 14:23:39 +07:00
commit aa9c76c82f
2234 changed files with 449471 additions and 0 deletions

21
node_modules/exeq/tests/output-file.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
var test = require('tape').test;
var exeq = require('..');
var fs = require('fs');
var path = require('path');
test('output file', function(t) {
var n = -1;
exeq(
'ls > a.txt'
).then(function(results) {
t.ok(fs.existsSync(path.resolve('a.txt')));
t.ok(fs.readFileSync('a.txt').toString().indexOf('a.txt') >= 0);
return exeq('rm a.txt');
}).then(function() {
t.notOk(fs.existsSync('a.txt'));
t.end();
});
});