mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
update locale-provider test case
This commit is contained in:
parent
fe57289656
commit
c7261f5fb6
@ -19,6 +19,9 @@ import skSK from '../sk_SK';
|
||||
import jaJP from '../ja_JP';
|
||||
import trTR from '../tr_TR';
|
||||
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 RangePicker = DatePicker.RangePicker;
|
||||
@ -64,7 +67,7 @@ const App = () => (
|
||||
|
||||
describe('Locale Provider', () => {
|
||||
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(
|
||||
<LocaleProvider locale={locale}>
|
||||
<App />
|
||||
@ -86,7 +89,7 @@ describe('Locale Provider', () => {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
[enUS, ptBR, ruRU, esES, svSE, frBE, deDE, nlNL, caES, csCZ, koKR, trTR, zhTW].forEach((locale) => {
|
||||
locales.forEach((locale) => {
|
||||
mount(
|
||||
<LocaleProvider locale={locale}>
|
||||
<ModalDemo />
|
||||
|
Loading…
Reference in New Issue
Block a user