<file_sep>/*
* Sample action for demo purposes
*/
export function testAction(val) {
  return {
    type: 'TEST',
    val,
  };
}
<file_sep># Consequences
[![Build Status](https://travis-ci.org/yonatanhakatan/consequences.svg?branch=master)](https://travis-ci.org/yonatanhakatan/consequences) [![Coverage Status](https://coveralls.io/repos/yonatanhakatan/consequences/badge.svg?branch=master&service=github)](https://coveralls.io/github/yonatanhakatan/consequences?branch=master)  

An online version of the addictive game 'Consequences'.
<file_sep>import React from 'react';
import { shallow } from 'enzyme';
import Welcome from './Welcome';

describe('Welcome', () => {
  it('should contain 2 buttons', () => {
    const element = shallow(<Welcome />);
    expect(element.find('button').length).toEqual(2);
  });
});
<file_sep>import React from 'react';
import cssModules from 'react-css-modules';
import classNames from 'classnames';

import styles from './Welcome.scss';

const Welcome = () => {
  const classes = classNames({
    welcome: true,
  });

  return (
    <div styleName={classes}>
      <div>
        <button>Start Game</button>
        <button>Join Game</button>
      </div>
    </div>
  );
};

export default cssModules(Welcome, styles, { allowMultiple: true });
<file_sep>import React from 'react';

import cssModules from 'react-css-modules';
import classNames from 'classnames';

import styles from './Main.scss';

const Main = (props) => {
  const classes = classNames({
    main: true,
  });

  return (
    <div styleName={classes}>
      {React.cloneElement(props.children, props)}
    </div>
  );
};

Main.propTypes = {
  children: React.PropTypes.any,
};

export default cssModules(Main, styles, { allowMultiple: true });
