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