Skip to content

Commit d51295a

Browse files
committed
docs(gen:tests): add some JSDoc to runCmd
1 parent 0787039 commit d51295a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: src/test/main.test.js

+10
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ const defaultOptions = {
2727
// var DEBUG = true;
2828
var DEBUG = false;
2929

30+
/**
31+
* @callback doneCallback
32+
* @param {null|Error} err
33+
*/
34+
35+
/**
36+
* Run the given command in a child process
37+
* @param {string} cmd - command to run
38+
* @param {doneCallback} done
39+
*/
3040
function runCmd(cmd, done) {
3141
exec(cmd, {}, function(err, stdout, stderr) {
3242
if(err) {

0 commit comments

Comments
 (0)