Switch the generation of everything so we generate tests and they can actually pass.

This commit is contained in:
Justin Niessner
2015-03-26 23:09:45 -04:00
parent 3cf4d739e3
commit 53b262ae3c
11 changed files with 70 additions and 26 deletions
+10 -1
View File
@@ -3,6 +3,7 @@ var util = require('util');
var ScriptBase = require('../script-base.js');
var ActionGenerator = module.exports = function ActionGenerator(args, options, config) {
args[0] += 'ActionCreators';
ScriptBase.apply(this, arguments);
}
@@ -13,5 +14,13 @@ ActionGenerator.prototype.createActionFile = function createActionFile() {
this.es6 = this.options.es6;
this.generateAction();
console.log(this.name);
this.generateSourceAndTest(
'Action',
'spec/Action',
void(0),
'actions',
false
);
}