We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee7ffcc commit cb625b4Copy full SHA for cb625b4
1 file changed
test/cmd.js
@@ -0,0 +1,17 @@
1
+var path = require('path')
2
+var test = require('tape')
3
+var winSpawn = require('win-spawn')
4
+
5
+var CMD_PATH = path.join(__dirname, '..', 'bin', 'cmd.js')
6
7
+test('command line usage: --help', function (t) {
8
+ t.plan(1)
9
10
+ var child = winSpawn(CMD_PATH, ['--help'])
11
+ child.on('error', function (err) {
12
+ t.fail(err)
13
+ })
14
+ child.on('close', function (code) {
15
+ t.equal(code, 0, 'zero exit code')
16
17
+})
0 commit comments