2017-07-03 19:42:52 -07:00
|
|
|
import { changeLanguage } from '../../common/actions/config';
|
2017-04-24 16:57:34 -07:00
|
|
|
|
|
|
|
describe('actions', () => {
|
2017-07-03 20:21:19 -07:00
|
|
|
it('should create an action to change language to index', () => {
|
|
|
|
const value = 'en';
|
|
|
|
const expectedAction = {
|
|
|
|
type: 'CONFIG_LANGUAGE_CHANGE',
|
|
|
|
value
|
|
|
|
};
|
|
|
|
expect(changeLanguage(value)).toEqual(expectedAction);
|
|
|
|
});
|
2017-05-23 16:16:26 -07:00
|
|
|
});
|