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

22
node_modules/exeq/tests/cd.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
var test = require('tape').test;
var exeq = require('..');
test('cd change cwd', function(t) {
var tempDirName = '__temp-for-tests';
exeq(
'mkdir ' + tempDirName,
'cd ' + tempDirName,
'pwd',
'cd ..',
'pwd',
'rm -rf ' + tempDirName
).then(function(results) {
t.ok(results[2].stdout.indexOf(tempDirName) > -1);
t.notOk(results[4].stdout.indexOf(tempDirName) > -1);
t.end();
});
});