File size: 379 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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);
});
});
});
|