fh-fhc
Version:
A Command Line Interface for FeedHenry
25 lines (23 loc) • 645 B
JavaScript
var exec = require('child_process').exec,
assert = require('assert');
require('test/fixtures/app/fixture_logs');
module.exports = {
setUp : function(cb) {
return cb();
},
"verify it works as a CLI with no arguments" : function(cb) {
exec('node bin/fhc.js',
function(error, stdout, stderr) {
assert(stdout.length > 0);
assert(stdout.indexOf('Usage')>-1);
return cb();
});
},
"verify it works as a CLI with arguments" : function(cb) {
exec('node bin/fhc.js help app logs',
function(error, stdout, stderr) {
assert(stdout.length > 0);
return cb();
});
}
};