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
+8 -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] += 'Store';
ScriptBase.apply(this, arguments);
}
@@ -14,5 +15,11 @@ ActionGenerator.prototype.createActionFile = function createActionFile() {
this.es6 = this.options.es6;
this.dispatcherName = this._.capitalizeFile(this.config.get('app-name')) + 'AppDispatcher';
this.generateStore();
this.generateSourceAndTest(
'Store',
'spec/Store',
void(0),
'stores',
false
);
}