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