shierro/territory-manager

View on GitHub
app/utils/actionsTester.js

Summary

Maintainability
A
0 mins
Test Coverage
export default (actions, consts) => {
  Object.keys(actions).forEach(action => {
    const { type } = actions[action]();
    it(`has a type [${type}]`, () => {
      expect(consts.indexOf(type) > -1).toEqual(true);
    });
  });
};