13 lines
338 B
TypeScript
13 lines
338 B
TypeScript
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);
|
|
});
|
|
});
|