From 26105034da4fcce7ac883c899d781f016559310d Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 8 Nov 2018 00:38:48 +0800 Subject: switch to vuepress --- node_modules/coa/tests/api-h.js | 9 +++++++++ node_modules/coa/tests/h.js | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100644 node_modules/coa/tests/api-h.js create mode 100644 node_modules/coa/tests/h.js (limited to 'node_modules/coa/tests') 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']); -- cgit v1.2.3