UNPKG

422 BJavaScriptView Raw
1/**
2 * Test for bin.
3 * Runs with nodeunit.
4 */
5
6"use strict";
7
8var bin = require.resolve('../bin/apeman-srch'),
9 assert = require('assert'),
10 cp = require('child_process');
11
12describe('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