contiago-toolbar
Version:
One of the options for outputting content from contiago xml-server
20 lines (17 loc) • 385 B
JavaScript
import {
changeLocale,
} from '../actions';
import {
CHANGE_LOCALE,
} from '../constants';
describe('LanguageProvider actions', () => {
describe('Change Local Action', () => {
it('has a type of CHANGE_LOCALE', () => {
const expected = {
type: CHANGE_LOCALE,
locale: 'de',
};
expect(changeLocale('de')).toEqual(expected);
});
});
});