File tree Expand file tree Collapse 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__ Expand file tree Collapse file tree 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
44
55exports [` Breadcrumb should not display Breadcrumb Item when its children is falsy 1` ] = `
66<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 >
89` ;
910
1011exports [` 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`] = `
9292 <br >
9393 Replication factor: 3
9494 <br >
95- Region: East China 1<br ></td >
95+ Region: East China 1<br >
96+ </td >
9697 </tr >
9798 </tbody >
9899 </table >
@@ -213,7 +214,8 @@ exports[`renders ./antdv-demo/docs/descriptions/demo/size.md correctly 1`] = `
213214 <br >
214215 Replication factor: 3
215216 <br >
216- Region: East China 1<br ></td >
217+ Region: East China 1<br >
218+ </td >
217219 </tr >
218220 </tbody >
219221 </table >
@@ -364,7 +366,8 @@ exports[`renders ./antdv-demo/docs/descriptions/demo/vertical-border.md correctl
364366 <br >
365367 Replication factor: 3
366368 <br >
367- Region: East China 1<br ></td >
369+ Region: East China 1<br >
370+ </td >
368371 </tr >
369372 </tbody >
370373 </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`] = `
8484 </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 = " " >
8585 <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 >
8686 </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 = " " >
8991 <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 >
9092 </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 = " " >
9193 <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', () => {
198198 } ) ;
199199 } ) ;
200200
201- it ( 'should change locale of Modal.xxx' , async ( ) => {
201+ fit ( 'should change locale of Modal.xxx' , async ( ) => {
202202 const ModalDemo = {
203203 mounted ( ) {
204204 Modal . confirm ( {
@@ -231,7 +231,7 @@ describe('Locale Provider', () => {
231231 '.ant-btn:not(.ant-btn-primary) span' ,
232232 ) [ 0 ] . innerHTML ;
233233 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' ) {
235235 cancelButtonText = cancelButtonText . replace ( ' ' , '' ) ;
236236 okButtonText = okButtonText . replace ( ' ' , '' ) ;
237237 }
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
3434
3535exports [` renders ./antdv-demo/docs/modal/demo/locale.md correctly 1` ] = `
3636<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 >
3839`;
3940
4041exports[`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`] = `
247247 <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 >
248248 <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 >
249249 </svg ></i > Your account has been frozen
250- <a >Thaw immediately > </a ></p >
250+ <a >Thaw immediately > </a >
251+ </p >
251252 <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 = " " >
252253 <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 >
253254 <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