MyCrypto/spec/actions/config.spec.js

13 lines
338 B
JavaScript
Raw Normal View History

2017-07-04 06:42:52 +04:00
import { changeLanguage } from '../../common/actions/config';
describe('actions', () => {
2017-07-03 22:21:19 -05: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-24 03:16:26 +04:00
});