Skip to content

Commit 31522c9

Browse files
committed
test: update snapshots
1 parent 4cd44ae commit 31522c9

File tree

13 files changed

+77
-48
lines changed

13 files changed

+77
-48
lines changed

components/card/__tests__/__snapshots__/demo.test.js.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,7 @@ exports[`renders ./components/card/demo/tabs.md correctly 1`] = `
262262
<div class="ant-tabs-nav-scroll">
263263
<div class="ant-tabs-nav ant-tabs-nav-animated">
264264
<div>
265-
<div role="tab" aria-disabled="false" aria-selected="true" class="ant-tabs-tab-active ant-tabs-tab"><span><i aria-label="icon: home" class="anticon anticon-home"><svg viewBox="64 64 896 896" data-icon="home" width="1em" height="1em" fill="currentColor" aria-hidden="true" class=""><path d="M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"></path></svg></i>tab1
266-
</span></div>
265+
<div role="tab" aria-disabled="false" aria-selected="true" class="ant-tabs-tab-active ant-tabs-tab"><span><i aria-label="icon: home" class="anticon anticon-home"><svg viewBox="64 64 896 896" data-icon="home" width="1em" height="1em" fill="currentColor" aria-hidden="true" class=""><path d="M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"></path></svg></i>tab1 </span></div>
267266
<div role="tab" aria-disabled="false" aria-selected="false" class=" ant-tabs-tab">tab2</div>
268267
</div>
269268
<div class="ant-tabs-ink-bar ant-tabs-ink-bar-animated" style="display: block; transform: translate3d(0px,0,0); webkit-transform: translate3d(0px,0,0); width: 0px;"></div>

components/cascader/__tests__/__snapshots__/demo.test.js.snap

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ exports[`renders ./components/cascader/demo/change-on-select.md correctly 1`] =
1414
1515
exports[`renders ./components/cascader/demo/custom-render.md correctly 1`] = `
1616
<span tabindex="0" class="ant-cascader-picker" style="width: 100%;"><span class="ant-input-affix-wrapper ant-cascader-input "><input type="text" readonly="true" class="ant-input"></span><span class="ant-cascader-picker-label"><span><span>
17-
Zhejiang /
17+
Zhejiang /
1818
</span></span><span><span>
19-
Hangzhou /
19+
Hangzhou /
2020
</span></span><span><span>
21-
West Lake (<a>752100</a>)
21+
West Lake (<a>752100</a>)
2222
</span></span></span><i aria-label="icon: close-circle" tabindex="-1" class="ant-cascader-picker-clear anticon anticon-close-circle"><svg viewBox="64 64 896 896" data-icon="close-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
2323
<path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-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 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"></path>
2424
</svg></i><i aria-label="icon: down" class="ant-cascader-picker-arrow anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
@@ -28,8 +28,7 @@ exports[`renders ./components/cascader/demo/custom-render.md correctly 1`] = `
2828
2929
exports[`renders ./components/cascader/demo/custom-trigger.md correctly 1`] = `
3030
<span>
31-
Unselect
32-
&nbsp;
31+
Unselect &nbsp;
3332
<a href="#" tabindex="0" class="">Change city</a></span>
3433
`;
3534

components/comment/__tests__/__snapshots__/demo.test.js.snap

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ exports[`renders ./components/comment/demo/basic.md correctly 1`] = `
77
<div class="ant-comment-content">
88
<div class="ant-comment-content-author"><span class="ant-comment-content-author-name"><a>Han Solo</a></span><span class="ant-comment-content-author-time"><span class="">a few seconds ago</span></span></div>
99
<div class="ant-comment-content-detail">
10-
<p>We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure), to help people create their product prototypes beautifully and efficiently.</p>
10+
<p>
11+
We supply a series of design principles, practical patterns and high quality design resources
12+
(Sketch and Axure), to help people create their product prototypes beautifully and
13+
efficiently.
14+
</p>
1115
</div>
1216
<ul class="ant-comment-actions">
1317
<li><span><i aria-label="icon: like" tabindex="-1" class="anticon anticon-like"><svg viewBox="64 64 896 896" data-icon="like" width="1em" height="1em" fill="currentColor" aria-hidden="true" class=""><path d="M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 0 0-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 0 0 471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0 1 42.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"></path></svg></i> <span style="cursor: 'auto';">
@@ -110,7 +114,10 @@ exports[`renders ./components/comment/demo/nested.md correctly 1`] = `
110114
<div class="ant-comment-content">
111115
<div class="ant-comment-content-author"><span class="ant-comment-content-author-name"><a>Han Solo</a></span></div>
112116
<div class="ant-comment-content-detail">
113-
<p>We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure).</p>
117+
<p>
118+
We supply a series of design principles, practical patterns and high quality design resources
119+
(Sketch and Axure).
120+
</p>
114121
</div>
115122
<ul class="ant-comment-actions">
116123
<li><span>Reply to</span></li>
@@ -124,7 +131,10 @@ exports[`renders ./components/comment/demo/nested.md correctly 1`] = `
124131
<div class="ant-comment-content">
125132
<div class="ant-comment-content-author"><span class="ant-comment-content-author-name"><a>Han Solo</a></span></div>
126133
<div class="ant-comment-content-detail">
127-
<p>We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure).</p>
134+
<p>
135+
We supply a series of design principles, practical patterns and high quality design
136+
resources (Sketch and Axure).
137+
</p>
128138
</div>
129139
<ul class="ant-comment-actions">
130140
<li><span>Reply to</span></li>
@@ -138,7 +148,10 @@ exports[`renders ./components/comment/demo/nested.md correctly 1`] = `
138148
<div class="ant-comment-content">
139149
<div class="ant-comment-content-author"><span class="ant-comment-content-author-name"><a>Han Solo</a></span></div>
140150
<div class="ant-comment-content-detail">
141-
<p>We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure).</p>
151+
<p>
152+
We supply a series of design principles, practical patterns and high quality design
153+
resources (Sketch and Axure).
154+
</p>
142155
</div>
143156
<ul class="ant-comment-actions">
144157
<li><span>Reply to</span></li>
@@ -152,7 +165,10 @@ exports[`renders ./components/comment/demo/nested.md correctly 1`] = `
152165
<div class="ant-comment-content">
153166
<div class="ant-comment-content-author"><span class="ant-comment-content-author-name"><a>Han Solo</a></span></div>
154167
<div class="ant-comment-content-detail">
155-
<p>We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure).</p>
168+
<p>
169+
We supply a series of design principles, practical patterns and high quality design
170+
resources (Sketch and Axure).
171+
</p>
156172
</div>
157173
<ul class="ant-comment-actions">
158174
<li><span>Reply to</span></li>

components/date-picker/__tests__/__snapshots__/demo.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ exports[`renders ./components/date-picker/demo/suffix.md correctly 1`] = `
7272
7373
exports[`renders ./components/date-picker/demo/text.md correctly 1`] = `
7474
<div><span class="ant-calendar-picker"><span class="">SelectTime</span></span> <br> <span tabindex="0" class="ant-calendar-picker"><span class="">
75-
请选择
75+
请选择
7676
</span></span></div>
7777
`;
7878

components/divider/__tests__/__snapshots__/demo.test.js.snap

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,40 @@
22

33
exports[`renders ./components/divider/demo/horizontal.md correctly 1`] = `
44
<div>
5-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.</p>
5+
<p>
6+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
7+
probare, quae sunt a te dicta? Refert tamen, quo modo.
8+
</p>
69
<div class="ant-divider ant-divider-horizontal"></div>
7-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.</p>
10+
<p>
11+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
12+
probare, quae sunt a te dicta? Refert tamen, quo modo.
13+
</p>
814
<div class="ant-divider ant-divider-horizontal ant-divider-with-text"><span class="ant-divider-inner-text">With Text</span></div>
9-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.</p>
15+
<p>
16+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
17+
probare, quae sunt a te dicta? Refert tamen, quo modo.
18+
</p>
1019
<div class="ant-divider ant-divider-horizontal ant-divider-dashed"></div>
11-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.</p>
20+
<p>
21+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
22+
probare, quae sunt a te dicta? Refert tamen, quo modo.
23+
</p>
1224
</div>
1325
`;
1426

1527
exports[`renders ./components/divider/demo/orientation.md correctly 1`] = `
1628
<div>
1729
<div class="ant-divider ant-divider-horizontal ant-divider-with-text-left"><span class="ant-divider-inner-text">Left Text</span></div>
18-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.</p>
30+
<p>
31+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
32+
probare, quae sunt a te dicta? Refert tamen, quo modo.
33+
</p>
1934
<div class="ant-divider ant-divider-horizontal ant-divider-with-text-right"><span class="ant-divider-inner-text">Right Text</span></div>
20-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.</p>
35+
<p>
36+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
37+
probare, quae sunt a te dicta? Refert tamen, quo modo.
38+
</p>
2139
</div>
2240
`;
2341

components/dropdown/__tests__/__snapshots__/demo.test.js.snap

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`renders ./components/dropdown/demo/basic.md correctly 1`] = `
4-
<a href="#" class="ant-dropdown-link ant-dropdown-trigger">
5-
Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
4+
<a href="#" class="ant-dropdown-link ant-dropdown-trigger"> Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
65
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
76
</svg></i></a>
87
`;
@@ -23,22 +22,19 @@ exports[`renders ./components/dropdown/demo/dropdown-button.md correctly 1`] = `
2322
`;
2423

2524
exports[`renders ./components/dropdown/demo/event.md correctly 1`] = `
26-
<a href="#" class="ant-dropdown-link ant-dropdown-trigger">
27-
Hover me, Click menu item <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
25+
<a href="#" class="ant-dropdown-link ant-dropdown-trigger"> Hover me, Click menu item <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
2826
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
2927
</svg></i></a>
3028
`;
3129

3230
exports[`renders ./components/dropdown/demo/item.md correctly 1`] = `
33-
<a href="#" class="ant-dropdown-link ant-dropdown-trigger">
34-
Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
31+
<a href="#" class="ant-dropdown-link ant-dropdown-trigger"> Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
3532
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
3633
</svg></i></a>
3734
`;
3835

3936
exports[`renders ./components/dropdown/demo/overlay-visible.md correctly 1`] = `
40-
<a href="#" class="ant-dropdown-link ant-dropdown-trigger">
41-
Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
37+
<a href="#" class="ant-dropdown-link ant-dropdown-trigger"> Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
4238
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
4339
</svg></i></a>
4440
`;
@@ -54,15 +50,13 @@ exports[`renders ./components/dropdown/demo/placement.md correctly 1`] = `
5450
`;
5551
5652
exports[`renders ./components/dropdown/demo/sub-menu.md correctly 1`] = `
57-
<a href="#" class="ant-dropdown-link ant-dropdown-trigger">
58-
Cascading menu <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
53+
<a href="#" class="ant-dropdown-link ant-dropdown-trigger"> Cascading menu <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
5954
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
6055
</svg></i></a>
6156
`;
6257
6358
exports[`renders ./components/dropdown/demo/trigger.md correctly 1`] = `
64-
<a href="#" class="ant-dropdown-link ant-dropdown-trigger">
65-
Click me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
59+
<a href="#" class="ant-dropdown-link ant-dropdown-trigger"> Click me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" class="">
6660
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
6761
</svg></i></a>
6862
`;

components/empty/__tests__/__snapshots__/demo.test.js.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ exports[`renders ./components/empty/demo/config-provider.md correctly 1`] = `
108108
exports[`renders ./components/empty/demo/customize.md correctly 1`] = `
109109
<div class="ant-empty">
110110
<div class="ant-empty-image"><img alt="empty" src="https://gw.alipayobjects.com/mdn/miniapp_social/afts/img/A*pevERLJC9v0AAAAAAAAAAABjAQAAAQ/original"></div>
111-
<p class="ant-empty-description"><span>
112-
Customize <a href="#API">Description</a></span></p>
111+
<p class="ant-empty-description"><span> Customize <a href="#API">Description</a></span></p>
113112
<div class="ant-empty-footer"> <button type="button" class="ant-btn ant-btn-primary"><span>Create Now</span></button></div>
114113
</div>
115114
`;

components/form/__tests__/__snapshots__/demo.test.js.snap

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ exports[`renders ./components/form/demo/normal-login.vue correctly 1`] = `
350350
</span></label><a href="" class="login-form-forgot">
351351
Forgot password
352352
</a><button type="submit" class="login-form-button ant-btn ant-btn-primary"><span>Log in</span></button>
353-
Or <a href="">
353+
Or
354+
<a href="">
354355
register now!
355356
</a></span>
356357
<!---->
@@ -446,7 +447,8 @@ exports[`renders ./components/form/demo/register.vue correctly 1`] = `
446447
<div class="ant-row ant-form-item">
447448
<div class="ant-col-xs-24 ant-col-xs-offset-0 ant-col-sm-16 ant-col-sm-offset-8 ant-form-item-control-wrapper">
448449
<div class="ant-form-item-control"><span class="ant-form-item-children"><label class="ant-checkbox-wrapper"><span class="ant-checkbox"><input id="register_agreement" type="checkbox" class="ant-checkbox-input" value=""><span class="ant-checkbox-inner"></span></span><span>
449-
I have read the <a href="">
450+
I have read the
451+
<a href="">
450452
agreement
451453
</a></span></label></span>
452454
<!---->

0 commit comments

Comments
 (0)