mirror of
https://github.com/bvanroll/rpiRadio.git
synced 2025-08-31 04:52:56 +00:00
Initial Commit
This commit is contained in:
20
ProjectNow/NodeServer/node_modules/ps-tree/test/direct.js
generated
vendored
Normal file
20
ProjectNow/NodeServer/node_modules/ps-tree/test/direct.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
var test = require('tape');
|
||||
var chalk = require('chalk');
|
||||
var cp = require('child_process');
|
||||
|
||||
var red = chalk.red,
|
||||
green = chalk.green,
|
||||
cyan = chalk.cyan;
|
||||
|
||||
test(cyan('Directly Execute bin/ps-tree.js'), function (t) {
|
||||
var first = cp.exec('node -v', function (error, stdout, stderr) {});
|
||||
var child = cp.exec('node ./bin/ps-tree.js', function (error, data) {
|
||||
// console.log('data: ' + data.length);
|
||||
if (error !== null) {
|
||||
console.log(red('exec error: ' + error));
|
||||
}
|
||||
});
|
||||
|
||||
t.true(child.pid, green('✓ Called ./bin/ps-tree.js directly. worked as expected'));
|
||||
t.end();
|
||||
});
|
Reference in New Issue
Block a user