MyCrypto/spec/actions/config.spec.js
2017-07-03 22:21:19 -05:00

13 lines
338 B
JavaScript

import { changeLanguage } from '../../common/actions/config';
describe('actions', () => {
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);
});
});