UNPKG

generator-redmod

Version:

A Yeoman generator for generating ES6 + React + Redux apps. Uses webpack, react-router, CSS-modules.

21 lines (16 loc) 493 B
import { createStore } from 'redux'; import { testStore } from '../utils'; import * as Actions from 'module/<%= props.name %>'; import Reducer from 'module/<%= props.name %>'; describe('a <%= props.name %> module', function () { beforeEach(function () { this.store = createStore(Reducer); }); it('should return default state', function (done) { let action = Actions.defaultAction(), callback = (state) => { done(); }; testStore(this.store, action, callback); }); });