quickbuild
Version:
A mature, feature-complete application generator with an emphasis on speed
16 lines (13 loc) • 379 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);
});
});
});