2017-05-23 23:16:26 +00:00
|
|
|
import { CHANGE_LANGUAGE, CONFIG_LANGUAGE_CHANGE } from '../../common/actions/config';
|
2017-04-24 23:57:34 +00:00
|
|
|
|
|
|
|
describe('actions', () => {
|
2017-05-23 23:16:26 +00:00
|
|
|
it('should create an action to change language to index', () => {
|
|
|
|
const value = { name: 'English', sign: 'en' };
|
|
|
|
const expectedAction = {
|
|
|
|
type: CONFIG_LANGUAGE_CHANGE,
|
|
|
|
value
|
|
|
|
};
|
|
|
|
expect(CHANGE_LANGUAGE(value)).toEqual(expectedAction);
|
|
|
|
});
|
|
|
|
});
|