13 lines
347 B
TypeScript
13 lines
347 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',
|
|
payload: value
|
|
};
|
|
expect(changeLanguage(value)).toEqual(expectedAction);
|
|
});
|
|
});
|