UNPKG

323 BJavaScriptView Raw
1/**
2 * Test for bin.
3 * Runs with mocha.
4 */
5
6'use strict'
7
8const bin = require.resolve('../bin/apeman-need')
9const assert = require('assert')
10const cp = require('child_process')
11
12it('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})