File tree 9 files changed +119
-285
lines changed
breadcrumb/__tests__/__snapshots__
descriptions/__tests__/__snapshots__
icon/__tests__/__snapshots__
locale-provider/__tests__
modal/__tests__/__snapshots__
result/__tests__/__snapshots__
space/__tests__/__snapshots__
table/__tests__/__snapshots__
9 files changed +119
-285
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ exports[`Breadcrumb should allow Breadcrumb.Item is null or undefined 1`] = `<di
4
4
5
5
exports [` Breadcrumb should not display Breadcrumb Item when its children is falsy 1` ] = `
6
6
<div class = " ant-breadcrumb" >
7
- <!----><span class = " " ><span class = " ant-breadcrumb-link" >xxx</span ><span class = " ant-breadcrumb-separator" >/</span ></span ><span class = " " ><span class = " ant-breadcrumb-link" >yyy</span ><span class = " ant-breadcrumb-separator" >/</span ></span ></div >
7
+ <!----><span class = " " ><span class = " ant-breadcrumb-link" >xxx</span ><span class = " ant-breadcrumb-separator" >/</span ></span ><span class = " " ><span class = " ant-breadcrumb-link" >yyy</span ><span class = " ant-breadcrumb-separator" >/</span ></span >
8
+ </div >
8
9
` ;
9
10
10
11
exports [` Breadcrumb should render a menu 1` ] = `
Original file line number Diff line number Diff line change @@ -92,7 +92,8 @@ exports[`renders ./antdv-demo/docs/descriptions/demo/border.md correctly 1`] = `
92
92
<br >
93
93
Replication factor: 3
94
94
<br >
95
- Region: East China 1<br ></td >
95
+ Region: East China 1<br >
96
+ </td >
96
97
</tr >
97
98
</tbody >
98
99
</table >
@@ -213,7 +214,8 @@ exports[`renders ./antdv-demo/docs/descriptions/demo/size.md correctly 1`] = `
213
214
<br >
214
215
Replication factor: 3
215
216
<br >
216
- Region: East China 1<br ></td >
217
+ Region: East China 1<br >
218
+ </td >
217
219
</tr >
218
220
</tbody >
219
221
</table >
@@ -364,7 +366,8 @@ exports[`renders ./antdv-demo/docs/descriptions/demo/vertical-border.md correctl
364
366
<br >
365
367
Replication factor: 3
366
368
<br >
367
- Region: East China 1<br ></td >
369
+ Region: East China 1<br >
370
+ </td >
368
371
</tr >
369
372
</tbody >
370
373
</table >
Original file line number Diff line number Diff line change @@ -84,8 +84,10 @@ exports[`renders ./antdv-demo/docs/icon/demo/old-icons.md correctly 1`] = `
84
84
</svg ></i ><i aria-label = " icon: double-left" class = " anticon anticon-double-left" ><svg viewBox = " 64 64 896 896" data-icon = " double-left" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " >
85
85
<path d = " M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 0 0 0 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 0 0 0 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z" ></path >
86
86
</svg ></i ><i aria-label = " icon: verticle-left" class = " anticon anticon-verticle-left" >
87
- <!----></i ><i aria-label = " icon: verticle-right" class = " anticon anticon-verticle-right" >
88
- <!----></i ><i aria-label = " icon: forward" class = " anticon anticon-forward" ><svg viewBox = " 0 0 1024 1024" data-icon = " forward" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " >
87
+ <!---->
88
+ </i ><i aria-label = " icon: verticle-right" class = " anticon anticon-verticle-right" >
89
+ <!---->
90
+ </i ><i aria-label = " icon: forward" class = " anticon anticon-forward" ><svg viewBox = " 0 0 1024 1024" data-icon = " forward" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " >
89
91
<path d = " M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28zm-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14 0-5.2-2.1-10.4-6.2-14z" ></path >
90
92
</svg ></i ><i aria-label = " icon: backward" class = " anticon anticon-backward" ><svg viewBox = " 0 0 1024 1024" data-icon = " backward" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " >
91
93
<path d = " M485.6 249.9L198.2 498c-8.3 7.1-8.3 20.8 0 27.9l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9zm320 0L518.2 498a18.6 18.6 0 0 0-6.2 14c0 5.2 2.1 10.4 6.2 14l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9z" ></path >
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ describe('Locale Provider', () => {
198
198
} ) ;
199
199
} ) ;
200
200
201
- it ( 'should change locale of Modal.xxx' , async ( ) => {
201
+ fit ( 'should change locale of Modal.xxx' , async ( ) => {
202
202
const ModalDemo = {
203
203
mounted ( ) {
204
204
Modal . confirm ( {
@@ -231,7 +231,7 @@ describe('Locale Provider', () => {
231
231
'.ant-btn:not(.ant-btn-primary) span' ,
232
232
) [ 0 ] . innerHTML ;
233
233
let okButtonText = currentConfirmNode . querySelectorAll ( '.ant-btn-primary span' ) [ 0 ] . innerHTML ;
234
- if ( locale . locale === 'zh-cn' ) {
234
+ if ( locale . locale === 'zh-cn' || locale . locale === 'zh-tw' ) {
235
235
cancelButtonText = cancelButtonText . replace ( ' ' , '' ) ;
236
236
okButtonText = okButtonText . replace ( ' ' , '' ) ;
237
237
}
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ exports[`renders ./antdv-demo/docs/modal/demo/info.md correctly 1`] = `<div><but
34
34
35
35
exports [` renders ./antdv-demo/docs/modal/demo/locale.md correctly 1` ] = `
36
36
<div ><button type = " button" class = " ant-btn ant-btn-primary" ><span >Modal</span ></button >
37
- <!----> <br > <br > <button type = " button" class = " ant-btn" ><span >Confirm</span ></button ></div >
37
+ <!----> <br > <br > <button type = " button" class = " ant-btn" ><span >Confirm</span ></button >
38
+ </div >
38
39
`;
39
40
40
41
exports[`renders ./antdv-demo/docs/modal/demo/manual.md correctly 1`] = `<button type = " button" class = " ant-btn" ><span >Open modal to close in 5s</span ></button >`;
Original file line number Diff line number Diff line change @@ -247,7 +247,8 @@ exports[`renders ./antdv-demo/docs/result/demo/error.md correctly 1`] = `
247
247
<path d = " M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 0 0-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z" ></path >
248
248
<path d = " M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" ></path >
249
249
</svg ></i > Your account has been frozen
250
- <a >Thaw immediately > </a ></p >
250
+ <a >Thaw immediately > </a >
251
+ </p >
251
252
<p ><i aria-label = " icon: close-circle" class = " anticon anticon-close-circle" style = " color: red;" ><svg viewBox = " 64 64 896 896" data-icon = " close-circle" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " >
252
253
<path d = " M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 0 0-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z" ></path >
253
254
<path d = " M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" ></path >
You can’t perform that action at this time.
0 commit comments