UNPKG

apeman-doc

Version:
24 lines (20 loc) 422 B
/** * Test for bin. * Runs with nodeunit. */ "use strict"; const bin = require.resolve('../bin/apeman-doc'), assert = require('assert'), cp = require('child_process'); describe('bin', () => { it('Bin test.', (done) => { let cmd = [ bin, '-h' ].join(' '); cp.exec(cmd, (err) => { assert.ifError(err); done(); }); }); });