apeman-doc
Version:
Document generator for apeman.
26 lines (21 loc) • 411 B
JavaScript
/**
* Test for bin.
* Runs with mocha.
*/
const bin = require.resolve('../bin/apeman-doc')
const assert = require('assert')
const cp = require('child_process')
describe('bin', () => {
it('Bin test.', (done) => {
let cmd = [
bin,
'-h'
].join(' ')
cp.exec(cmd, (err) => {
assert.ifError(err)
done()
})
})
})
/* global describe, before, after, it */