UNPKG

apeman-doc

Version:
26 lines (21 loc) 411 B
/** * Test for bin. * Runs with mocha. */ 'use strict' 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 */