apeman-tmpl
Version:
Template manager for apeman.
26 lines (21 loc) • 493 B
JavaScript
/**
* Test for bin.
* Runs with mocha.
*/
;
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();
});
});
});