update locale-provider test case

This commit is contained in:
afc163 2017-04-13 11:12:30 +08:00
parent fe57289656
commit c7261f5fb6

View File

@ -19,6 +19,9 @@ import skSK from '../sk_SK';
import jaJP from '../ja_JP'; import jaJP from '../ja_JP';
import trTR from '../tr_TR'; import trTR from '../tr_TR';
import zhTW from '../zh_TW'; import zhTW from '../zh_TW';
import fiFI from '../fi_FI';
const locales = [enUS, ptBR, ruRU, esES, svSE, frBE, deDE, nlNL, caES, csCZ, koKR, etEE, skSK, jaJP, trTR, zhTW, fiFI];
const Option = Select.Option; const Option = Select.Option;
const RangePicker = DatePicker.RangePicker; const RangePicker = DatePicker.RangePicker;
@ -64,7 +67,7 @@ const App = () => (
describe('Locale Provider', () => { describe('Locale Provider', () => {
it('should display the text as locale changed', () => { it('should display the text as locale changed', () => {
[enUS, ptBR, ruRU, esES, svSE, frBE, deDE, nlNL, caES, csCZ, koKR, etEE, skSK, jaJP, trTR, zhTW].forEach((locale) => { locales.forEach((locale) => {
const wrapper = mount( const wrapper = mount(
<LocaleProvider locale={locale}> <LocaleProvider locale={locale}>
<App /> <App />
@ -86,7 +89,7 @@ describe('Locale Provider', () => {
return null; return null;
} }
} }
[enUS, ptBR, ruRU, esES, svSE, frBE, deDE, nlNL, caES, csCZ, koKR, trTR, zhTW].forEach((locale) => { locales.forEach((locale) => {
mount( mount(
<LocaleProvider locale={locale}> <LocaleProvider locale={locale}>
<ModalDemo /> <ModalDemo />