1 | /**
|
2 | * Test for bin.
|
3 | * Runs with mocha.
|
4 | */
|
5 |
|
6 | ;
|
7 |
|
8 | var bin = require.resolve('../bin/apeman-srch'),
|
9 | assert = require('assert'),
|
10 | cp = require('child_process');
|
11 |
|
12 | describe('bin', () => {
|
13 | it('Show help.', (done)=> {
|
14 | let cmd = [
|
15 | bin,
|
16 | '-h'
|
17 | ].join(' ');
|
18 | cp.exec(cmd, (err) => {
|
19 | assert.ifError(err);
|
20 | done();
|
21 | });
|
22 | });
|
23 | });
|
24 |
|