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
+4 -4
View File
@@ -4,11 +4,11 @@ var EventEmitter = require('events').EventEmitter;
var assign = require('object-assign');
var <%= dispatcherName %> = require('../dispatcher/<%= dispatcherName %>');
var <%= classedName + 'Store' %> = assign({}, EventEmitter.prototype, {
var <%= classedName %> = assign({}, EventEmitter.prototype, {
});
<%= classedName + 'Store' %>.dispatchToken = <%= dispatcherName %>.register(function(action) {
<%= classedName %>.dispatchToken = <%= dispatcherName %>.register(function(action) {
switch(action.type) {
default:
@@ -16,5 +16,5 @@ var <%= classedName + 'Store' %> = assign({}, EventEmitter.prototype, {
});
<% if (es6) { %> export default <%= classedName + 'Store' %>; <% }
else { %>module.exports = <%= classedName + 'Store' %>; <% } %>
<% if (es6) { %> export default <%= classedName %>; <% }
else { %>module.exports = <%= classedName %>; <% } %>