aboutsummaryrefslogtreecommitdiff
path: root/node_modules/coa/tests
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/coa/tests')
-rw-r--r--node_modules/coa/tests/api-h.js9
-rw-r--r--node_modules/coa/tests/h.js6
2 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/coa/tests/api-h.js b/node_modules/coa/tests/api-h.js
new file mode 100644
index 00000000..c343fa06
--- /dev/null
+++ b/node_modules/coa/tests/api-h.js
@@ -0,0 +1,9 @@
+require('..').Cmd()
+ .name('bla')
+ .title('Bla bla bla')
+ .helpful()
+ .invoke({ help: true })
+ .then(function(res) {
+ console.log(res);
+ })
+ .done(); // Q.done()
diff --git a/node_modules/coa/tests/h.js b/node_modules/coa/tests/h.js
new file mode 100644
index 00000000..b8e2c768
--- /dev/null
+++ b/node_modules/coa/tests/h.js
@@ -0,0 +1,6 @@
+var argv = process.argv.slice(2);
+require('..').Cmd()
+ .name('bla')
+ .title('Bla bla bla')
+ .helpful()
+ .run(argv.length? argv : ['-h']);