14 lines
371 B
TypeScript
14 lines
371 B
TypeScript
import { CONFIG_META } from './types';
|
|
import { changeLanguage } from './actions';
|
|
|
|
describe('actions', () => {
|
|
it('should create an action to change language to index', () => {
|
|
const value = 'en';
|
|
const expectedAction = {
|
|
type: CONFIG_META.LANGUAGE_CHANGE,
|
|
payload: value
|
|
};
|
|
expect(changeLanguage(value)).toEqual(expectedAction);
|
|
});
|
|
});
|