1 | /**
|
2 | * Test for bin.
|
3 | * Runs with mocha.
|
4 | */
|
5 |
|
6 |
|
7 |
|
8 | const bin = require.resolve('../bin/apeman-dply')
|
9 | const cp = require('child_process')
|
10 | const assert = require('assert')
|
11 |
|
12 | describe('bin-test', function () {
|
13 | this.timeout(32000)
|
14 | before((done) => {
|
15 | done()
|
16 | })
|
17 |
|
18 | after((done) => {
|
19 | done()
|
20 | })
|
21 |
|
22 | it('Show help.', (done) => {
|
23 | let cmd = [
|
24 | bin,
|
25 | '-h'
|
26 | ].join(' ')
|
27 | cp.exec(cmd, (err) => {
|
28 | assert.ifError(err)
|
29 | done()
|
30 | })
|
31 | })
|
32 |
|
33 | })
|
34 | /* global describe, before, after, it */
|