Browse Source

test: fix 3.x test case (#22447)

*  fix snapshot

* fix test case broken by react-component/calendar#640

* 🔒 lock @typescript-eslint/parser version
pull/22438/head
偏右 5 years ago
committed by GitHub
parent
commit
0792ac8762
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      components/config-provider/__tests__/__snapshots__/components.test.js.snap
  2. 4
      components/date-picker/__tests__/showTime.test.js
  3. 204
      components/locale-provider/__tests__/__snapshots__/index.test.js.snap
  4. 12
      components/modal/__tests__/__snapshots__/Modal.test.js.snap
  5. 4
      package.json

12
components/config-provider/__tests__/__snapshots__/components.test.js.snap

@ -8171,7 +8171,7 @@ exports[`ConfigProvider components Modal configProvider 1`] = `
>
<div
aria-hidden="true"
style="width:0;height:0;overflow:hidden"
style="width:0;height:0;overflow:hidden;outline:none"
tabindex="0"
/>
<div
@ -8236,7 +8236,7 @@ exports[`ConfigProvider components Modal configProvider 1`] = `
</div>
<div
aria-hidden="true"
style="width:0;height:0;overflow:hidden"
style="width:0;height:0;overflow:hidden;outline:none"
tabindex="0"
/>
</div>
@ -8265,7 +8265,7 @@ exports[`ConfigProvider components Modal normal 1`] = `
>
<div
aria-hidden="true"
style="width:0;height:0;overflow:hidden"
style="width:0;height:0;overflow:hidden;outline:none"
tabindex="0"
/>
<div
@ -8330,7 +8330,7 @@ exports[`ConfigProvider components Modal normal 1`] = `
</div>
<div
aria-hidden="true"
style="width:0;height:0;overflow:hidden"
style="width:0;height:0;overflow:hidden;outline:none"
tabindex="0"
/>
</div>
@ -8359,7 +8359,7 @@ exports[`ConfigProvider components Modal prefixCls 1`] = `
>
<div
aria-hidden="true"
style="width:0;height:0;overflow:hidden"
style="width:0;height:0;overflow:hidden;outline:none"
tabindex="0"
/>
<div
@ -8424,7 +8424,7 @@ exports[`ConfigProvider components Modal prefixCls 1`] = `
</div>
<div
aria-hidden="true"
style="width:0;height:0;overflow:hidden"
style="width:0;height:0;overflow:hidden;outline:none"
tabindex="0"
/>
</div>

4
components/date-picker/__tests__/showTime.test.js

@ -75,7 +75,9 @@ describe('DatePicker with showTime', () => {
});
it('should have correct className when use12Hours is true', () => {
const wrapper = mount(<DatePicker showTime={{ use12Hours: true }} open />);
const wrapper = mount(
<DatePicker defaultValue={moment()} showTime={{ use12Hours: true }} open />,
);
const calendarWrapper = mount(
wrapper
.find('Trigger')

204
components/locale-provider/__tests__/__snapshots__/index.test.js.snap

@ -7743,7 +7743,7 @@ exports[`Locale Provider should display the text as ar 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -7820,7 +7820,7 @@ exports[`Locale Provider should display the text as ar 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -13076,7 +13076,7 @@ exports[`Locale Provider should display the text as bg 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -13153,7 +13153,7 @@ exports[`Locale Provider should display the text as bg 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -18409,7 +18409,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -18486,7 +18486,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -23742,7 +23742,7 @@ exports[`Locale Provider should display the text as cs 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -23819,7 +23819,7 @@ exports[`Locale Provider should display the text as cs 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -29075,7 +29075,7 @@ exports[`Locale Provider should display the text as da 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -29152,7 +29152,7 @@ exports[`Locale Provider should display the text as da 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -34408,7 +34408,7 @@ exports[`Locale Provider should display the text as de 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -34485,7 +34485,7 @@ exports[`Locale Provider should display the text as de 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -39741,7 +39741,7 @@ exports[`Locale Provider should display the text as el 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -39818,7 +39818,7 @@ exports[`Locale Provider should display the text as el 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -45074,7 +45074,7 @@ exports[`Locale Provider should display the text as en 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -45151,7 +45151,7 @@ exports[`Locale Provider should display the text as en 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -50407,7 +50407,7 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -50484,7 +50484,7 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -55740,7 +55740,7 @@ exports[`Locale Provider should display the text as es 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -55817,7 +55817,7 @@ exports[`Locale Provider should display the text as es 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -61073,7 +61073,7 @@ exports[`Locale Provider should display the text as et 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -61150,7 +61150,7 @@ exports[`Locale Provider should display the text as et 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -66406,7 +66406,7 @@ exports[`Locale Provider should display the text as fa 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -66483,7 +66483,7 @@ exports[`Locale Provider should display the text as fa 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -71739,7 +71739,7 @@ exports[`Locale Provider should display the text as fi 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -71816,7 +71816,7 @@ exports[`Locale Provider should display the text as fi 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -77072,7 +77072,7 @@ exports[`Locale Provider should display the text as fr 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -77149,7 +77149,7 @@ exports[`Locale Provider should display the text as fr 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -82405,7 +82405,7 @@ exports[`Locale Provider should display the text as fr 2`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -82482,7 +82482,7 @@ exports[`Locale Provider should display the text as fr 2`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -87738,7 +87738,7 @@ exports[`Locale Provider should display the text as he 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -87815,7 +87815,7 @@ exports[`Locale Provider should display the text as he 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -93071,7 +93071,7 @@ exports[`Locale Provider should display the text as hi 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -93148,7 +93148,7 @@ exports[`Locale Provider should display the text as hi 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -98404,7 +98404,7 @@ exports[`Locale Provider should display the text as hr 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -98481,7 +98481,7 @@ exports[`Locale Provider should display the text as hr 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -103737,7 +103737,7 @@ exports[`Locale Provider should display the text as hu 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -103814,7 +103814,7 @@ exports[`Locale Provider should display the text as hu 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -109070,7 +109070,7 @@ exports[`Locale Provider should display the text as hy 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -109147,7 +109147,7 @@ exports[`Locale Provider should display the text as hy 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -114403,7 +114403,7 @@ exports[`Locale Provider should display the text as id 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -114480,7 +114480,7 @@ exports[`Locale Provider should display the text as id 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -119736,7 +119736,7 @@ exports[`Locale Provider should display the text as is 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -119813,7 +119813,7 @@ exports[`Locale Provider should display the text as is 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -125069,7 +125069,7 @@ exports[`Locale Provider should display the text as it 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -125146,7 +125146,7 @@ exports[`Locale Provider should display the text as it 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -130402,7 +130402,7 @@ exports[`Locale Provider should display the text as ja 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -130479,7 +130479,7 @@ exports[`Locale Provider should display the text as ja 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -135735,7 +135735,7 @@ exports[`Locale Provider should display the text as kn 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -135812,7 +135812,7 @@ exports[`Locale Provider should display the text as kn 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -141068,7 +141068,7 @@ exports[`Locale Provider should display the text as ko 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -141145,7 +141145,7 @@ exports[`Locale Provider should display the text as ko 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -146401,7 +146401,7 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -146478,7 +146478,7 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -151734,7 +151734,7 @@ exports[`Locale Provider should display the text as lv 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -151811,7 +151811,7 @@ exports[`Locale Provider should display the text as lv 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -157067,7 +157067,7 @@ exports[`Locale Provider should display the text as mk 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -157144,7 +157144,7 @@ exports[`Locale Provider should display the text as mk 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -162400,7 +162400,7 @@ exports[`Locale Provider should display the text as mn-mn 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -162477,7 +162477,7 @@ exports[`Locale Provider should display the text as mn-mn 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -167733,7 +167733,7 @@ exports[`Locale Provider should display the text as ms-my 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -167810,7 +167810,7 @@ exports[`Locale Provider should display the text as ms-my 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -173066,7 +173066,7 @@ exports[`Locale Provider should display the text as nb 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -173143,7 +173143,7 @@ exports[`Locale Provider should display the text as nb 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -178399,7 +178399,7 @@ exports[`Locale Provider should display the text as ne-np 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -178476,7 +178476,7 @@ exports[`Locale Provider should display the text as ne-np 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -183732,7 +183732,7 @@ exports[`Locale Provider should display the text as nl 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -183809,7 +183809,7 @@ exports[`Locale Provider should display the text as nl 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -189065,7 +189065,7 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -189142,7 +189142,7 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -194398,7 +194398,7 @@ exports[`Locale Provider should display the text as pl 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -194475,7 +194475,7 @@ exports[`Locale Provider should display the text as pl 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -199731,7 +199731,7 @@ exports[`Locale Provider should display the text as pt 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -199808,7 +199808,7 @@ exports[`Locale Provider should display the text as pt 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -205064,7 +205064,7 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -205141,7 +205141,7 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -210397,7 +210397,7 @@ exports[`Locale Provider should display the text as ro 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -210474,7 +210474,7 @@ exports[`Locale Provider should display the text as ro 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -215730,7 +215730,7 @@ exports[`Locale Provider should display the text as ru 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -215807,7 +215807,7 @@ exports[`Locale Provider should display the text as ru 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -221063,7 +221063,7 @@ exports[`Locale Provider should display the text as sk 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -221140,7 +221140,7 @@ exports[`Locale Provider should display the text as sk 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -226396,7 +226396,7 @@ exports[`Locale Provider should display the text as sl 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -226473,7 +226473,7 @@ exports[`Locale Provider should display the text as sl 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -231729,7 +231729,7 @@ exports[`Locale Provider should display the text as sr 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -231806,7 +231806,7 @@ exports[`Locale Provider should display the text as sr 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -237062,7 +237062,7 @@ exports[`Locale Provider should display the text as sv 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -237139,7 +237139,7 @@ exports[`Locale Provider should display the text as sv 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -242395,7 +242395,7 @@ exports[`Locale Provider should display the text as ta 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -242472,7 +242472,7 @@ exports[`Locale Provider should display the text as ta 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -247728,7 +247728,7 @@ exports[`Locale Provider should display the text as th 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -247805,7 +247805,7 @@ exports[`Locale Provider should display the text as th 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -253061,7 +253061,7 @@ exports[`Locale Provider should display the text as tr 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -253138,7 +253138,7 @@ exports[`Locale Provider should display the text as tr 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -258394,7 +258394,7 @@ exports[`Locale Provider should display the text as uk 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -258471,7 +258471,7 @@ exports[`Locale Provider should display the text as uk 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -263727,7 +263727,7 @@ exports[`Locale Provider should display the text as vi 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -263804,7 +263804,7 @@ exports[`Locale Provider should display the text as vi 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -269060,7 +269060,7 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -269137,7 +269137,7 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -274393,7 +274393,7 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -274470,7 +274470,7 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>

12
components/modal/__tests__/__snapshots__/Modal.test.js.snap

@ -22,7 +22,7 @@ exports[`Modal render correctly 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -87,7 +87,7 @@ exports[`Modal render correctly 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -120,7 +120,7 @@ exports[`Modal render without footer 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -163,7 +163,7 @@ exports[`Modal render without footer 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>
@ -193,7 +193,7 @@ exports[`Modal support closeIcon 1`] = `
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
<div
@ -240,7 +240,7 @@ exports[`Modal support closeIcon 1`] = `
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden;"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
</div>

4
package.json

@ -163,7 +163,7 @@
"@types/shallowequal": "^1.1.1",
"@types/warning": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^2.0.0",
"@typescript-eslint/parser": "^2.10.0",
"@typescript-eslint/parser": "~2.23.0",
"antd-theme-generator": "^1.1.6",
"babel-eslint": "^10.0.1",
"babel-plugin-add-react-displayname": "^0.0.5",
@ -187,7 +187,7 @@
"eslint-config-airbnb": "^18.0.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "~2.19.1",
"eslint-plugin-import": "~2.20.1",
"eslint-plugin-jest": "^23.0.2",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-markdown": "^1.0.0",

Loading…
Cancel
Save