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

16
node_modules/exeq/tests/error.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
var test = require('tape').test;
var exeq = require('..');
test('catch error', function(t) {
exeq('not-existed-cmd').then(function(results) {
}).catch(function(err) {
t.equal(err.code, 127);
t.ok(err.stderr.indexOf('not found') > -1);
}).finally(function() {
t.end();
});
});