UNPKG

apeman-tmpl

Version:
26 lines (21 loc) 493 B
/** * Test for bin. * Runs with mocha. */ "use strict"; const bin = require.resolve('../bin/apeman-tmpl'), assert = require('assert'), cp = require('child_process'); describe('bin', ()=> { it('Run command.', (done) => { var cmd = [ bin, '-c', require.resolve('../doc/mocks/mock-Apemanfile.js') ].join(' '); cp.exec(cmd, function (err) { assert.ifError(err); done(); }); }); });