Skip to content

Commit 054a8ce

Browse files
author
undefined
committed
test: update snapshots
1 parent ff25efe commit 054a8ce

File tree

81 files changed

+14168
-18497
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+14168
-18497
lines changed

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

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,25 @@
33
exports[`renders ./components/affix/demo/basic.md correctly 1`] = `
44
<div>
55
<div>
6-
<div class="">
7-
<button type="button" class="ant-btn ant-btn-primary"><span>Affix top</span></button>
8-
</div>
9-
</div>
10-
<br>
6+
<div class=""><button type="button" class="ant-btn ant-btn-primary"><span>Affix top</span></button></div>
7+
</div> <br>
118
<div>
12-
<div class="">
13-
<button type="button" class="ant-btn ant-btn-primary"><span>Affix bottom</span></button>
14-
</div>
9+
<div class=""><button type="button" class="ant-btn ant-btn-primary"><span>Affix bottom</span></button></div>
1510
</div>
1611
</div>
1712
`;
1813
1914
exports[`renders ./components/affix/demo/on-change.md correctly 1`] = `
2015
<div>
21-
<div class="">
22-
<button type="button" class="ant-btn ant-btn-default"><span>120px to affix top</span></button>
23-
</div>
16+
<div class=""><button type="button" class="ant-btn ant-btn-default"><span>120px to affix top</span></button></div>
2417
</div>
2518
`;
2619
2720
exports[`renders ./components/affix/demo/target.md correctly 1`] = `
2821
<div id="components-affix-demo-target" class="scrollable-container">
2922
<div class="background">
3023
<div>
31-
<div class="">
32-
<button type="button" class="ant-btn ant-btn-primary"><span>Fixed at the top of container</span></button>
33-
</div>
24+
<div class=""><button type="button" class="ant-btn ant-btn-primary"><span>Fixed at the top of container</span></button></div>
3425
</div>
3526
</div>
3627
</div>

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

Lines changed: 17 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -2,53 +2,29 @@
22

33
exports[`renders ./components/alert/demo/banner.md correctly 1`] = `
44
<div>
5-
<div data-show="true" class="ant-alert ant-alert-warning ant-alert-banner">
6-
<i class="anticon anticon-exclamation-circle ant-alert-icon"></i><span class="ant-alert-message">Warning text</span><span class="ant-alert-description"></span></div>
7-
<br>
8-
<div data-show="true" class="ant-alert ant-alert-warning ant-alert-banner">
9-
<i class="anticon anticon-exclamation-circle ant-alert-icon"></i><span class="ant-alert-message">Very long warning text warning text text text text text text text</span><span class="ant-alert-description"></span>
10-
<a class="ant-alert-close-icon">
11-
<i class="anticon anticon-cross"></i>
12-
</a>
13-
</div>
14-
<br>
15-
<div data-show="true" class="ant-alert ant-alert-warning ant-alert-no-icon ant-alert-banner"><span class="ant-alert-message">Warning text without icon</span><span class="ant-alert-description"></span></div>
16-
<br>
17-
<div data-show="true" class="ant-alert ant-alert-error ant-alert-banner">
18-
<i class="anticon anticon-cross-circle ant-alert-icon"></i><span class="ant-alert-message">Error text</span><span class="ant-alert-description"></span></div>
5+
<div data-show="true" class="ant-alert ant-alert-warning ant-alert-banner"><i class="anticon anticon-exclamation-circle ant-alert-icon"></i><span class="ant-alert-message">Warning text</span><span class="ant-alert-description"></span></div> <br>
6+
<div data-show="true" class="ant-alert ant-alert-warning ant-alert-banner"><i class="anticon anticon-exclamation-circle ant-alert-icon"></i><span class="ant-alert-message">Very long warning text warning text text text text text text text</span><span class="ant-alert-description"></span><a class="ant-alert-close-icon"><i class="anticon anticon-cross"></i></a></div> <br>
7+
<div data-show="true" class="ant-alert ant-alert-warning ant-alert-no-icon ant-alert-banner"><span class="ant-alert-message">Warning text without icon</span><span class="ant-alert-description"></span></div> <br>
8+
<div data-show="true" class="ant-alert ant-alert-error ant-alert-banner"><i class="anticon anticon-cross-circle ant-alert-icon"></i><span class="ant-alert-message">Error text</span><span class="ant-alert-description"></span></div>
199
</div>
2010
`;
2111
2212
exports[`renders ./components/alert/demo/basic.md correctly 1`] = `<div data-show="true" class="ant-alert ant-alert-success ant-alert-no-icon"><span class="ant-alert-message">Success Text</span><span class="ant-alert-description"></span></div>`;
2313
2414
exports[`renders ./components/alert/demo/closable.md correctly 1`] = `
2515
<div>
26-
<div data-show="true" class="ant-alert ant-alert-warning ant-alert-no-icon"><span class="ant-alert-message">Warning Text Warning Text Warning TextW arning Text Warning Text Warning TextWarning Text</span><span class="ant-alert-description"></span>
27-
<a class="ant-alert-close-icon">
28-
<i class="anticon anticon-cross"></i>
29-
</a>
30-
</div>
31-
<div data-show="true" class="ant-alert ant-alert-error ant-alert-with-description ant-alert-no-icon"><span class="ant-alert-message">Error Text</span><span class="ant-alert-description">Error Description Error Description Error Description Error Description Error Description Error Description</span>
32-
<a class="ant-alert-close-icon">
33-
<i class="anticon anticon-cross"></i>
34-
</a>
35-
</div>
16+
<div data-show="true" class="ant-alert ant-alert-warning ant-alert-no-icon"><span class="ant-alert-message">Warning Text Warning Text Warning TextW arning Text Warning Text Warning TextWarning Text</span><span class="ant-alert-description"></span><a class="ant-alert-close-icon"><i class="anticon anticon-cross"></i></a></div>
17+
<div data-show="true" class="ant-alert ant-alert-error ant-alert-with-description ant-alert-no-icon"><span class="ant-alert-message">Error Text</span><span class="ant-alert-description">Error Description Error Description Error Description Error Description Error Description Error Description</span><a class="ant-alert-close-icon"><i class="anticon anticon-cross"></i></a></div>
3618
</div>
3719
`;
3820
39-
exports[`renders ./components/alert/demo/close-text.md correctly 1`] = `
40-
<div data-show="true" class="ant-alert ant-alert-info ant-alert-no-icon"><span class="ant-alert-message">Info Text</span><span class="ant-alert-description"></span>
41-
<a class="ant-alert-close-icon">Close Now</a>
42-
</div>
43-
`;
21+
exports[`renders ./components/alert/demo/close-text.md correctly 1`] = `<div data-show="true" class="ant-alert ant-alert-info ant-alert-no-icon"><span class="ant-alert-message">Info Text</span><span class="ant-alert-description"></span><a class="ant-alert-close-icon">Close Now</a></div>`;
4422
4523
exports[`renders ./components/alert/demo/description.md correctly 1`] = `
4624
<div>
4725
<div data-show="true" class="ant-alert ant-alert-success ant-alert-with-description ant-alert-no-icon"><span class="ant-alert-message">Success Text</span><span class="ant-alert-description"><p>
4826
Success Description <span style="color: red;">Success</span> Description Success Description
49-
</p>
50-
</span>
51-
</div>
27+
</p></span></div>
5228
<div data-show="true" class="ant-alert ant-alert-info ant-alert-with-description ant-alert-no-icon"><span class="ant-alert-message">Info Text</span><span class="ant-alert-description">Info Description Info Description Info Description Info Description</span></div>
5329
<div data-show="true" class="ant-alert ant-alert-warning ant-alert-with-description ant-alert-no-icon"><span class="ant-alert-message">Warning Text</span><span class="ant-alert-description">Warning Description Warning Description Warning Description Warning Description</span></div>
5430
<div data-show="true" class="ant-alert ant-alert-error ant-alert-with-description ant-alert-no-icon"><span class="ant-alert-message">Error Text</span><span class="ant-alert-description">Error Description Error Description Error Description Error Description</span></div>
@@ -57,32 +33,20 @@ exports[`renders ./components/alert/demo/description.md correctly 1`] = `
5733
5834
exports[`renders ./components/alert/demo/icon.md correctly 1`] = `
5935
<div>
60-
<div data-show="true" class="ant-alert ant-alert-success">
61-
<i class="anticon anticon-check-circle ant-alert-icon"></i><span class="ant-alert-message">Success Tips</span><span class="ant-alert-description"></span></div>
62-
<div data-show="true" class="ant-alert ant-alert-info">
63-
<i class="anticon anticon-info-circle ant-alert-icon"></i><span class="ant-alert-message">Informational Notes</span><span class="ant-alert-description"></span></div>
64-
<div data-show="true" class="ant-alert ant-alert-warning">
65-
<i class="anticon anticon-exclamation-circle ant-alert-icon"></i><span class="ant-alert-message">Warning</span><span class="ant-alert-description"></span></div>
66-
<div data-show="true" class="ant-alert ant-alert-error">
67-
<i class="anticon anticon-cross-circle ant-alert-icon"></i><span class="ant-alert-message">Error</span><span class="ant-alert-description"></span></div>
68-
<div data-show="true" class="ant-alert ant-alert-success ant-alert-with-description">
69-
<i class="anticon anticon-check-circle-o ant-alert-icon"></i><span class="ant-alert-message">Success Tips</span><span class="ant-alert-description">Detailed description and advices about successful copywriting.</span></div>
70-
<div data-show="true" class="ant-alert ant-alert-info ant-alert-with-description">
71-
<i class="anticon anticon-info-circle-o ant-alert-icon"></i><span class="ant-alert-message">Informational Notes</span><span class="ant-alert-description">Additional description and informations about copywriting.</span></div>
72-
<div data-show="true" class="ant-alert ant-alert-warning ant-alert-with-description">
73-
<i class="anticon anticon-exclamation-circle-o ant-alert-icon"></i><span class="ant-alert-message">Warning</span><span class="ant-alert-description">This is a warning notice about copywriting.</span></div>
74-
<div data-show="true" class="ant-alert ant-alert-error ant-alert-with-description">
75-
<i class="anticon anticon-cross-circle-o ant-alert-icon"></i><span class="ant-alert-message">Error</span><span class="ant-alert-description">This is an error message about copywriting.</span></div>
36+
<div data-show="true" class="ant-alert ant-alert-success"><i class="anticon anticon-check-circle ant-alert-icon"></i><span class="ant-alert-message">Success Tips</span><span class="ant-alert-description"></span></div>
37+
<div data-show="true" class="ant-alert ant-alert-info"><i class="anticon anticon-info-circle ant-alert-icon"></i><span class="ant-alert-message">Informational Notes</span><span class="ant-alert-description"></span></div>
38+
<div data-show="true" class="ant-alert ant-alert-warning"><i class="anticon anticon-exclamation-circle ant-alert-icon"></i><span class="ant-alert-message">Warning</span><span class="ant-alert-description"></span></div>
39+
<div data-show="true" class="ant-alert ant-alert-error"><i class="anticon anticon-cross-circle ant-alert-icon"></i><span class="ant-alert-message">Error</span><span class="ant-alert-description"></span></div>
40+
<div data-show="true" class="ant-alert ant-alert-success ant-alert-with-description"><i class="anticon anticon-check-circle-o ant-alert-icon"></i><span class="ant-alert-message">Success Tips</span><span class="ant-alert-description">Detailed description and advices about successful copywriting.</span></div>
41+
<div data-show="true" class="ant-alert ant-alert-info ant-alert-with-description"><i class="anticon anticon-info-circle-o ant-alert-icon"></i><span class="ant-alert-message">Informational Notes</span><span class="ant-alert-description">Additional description and informations about copywriting.</span></div>
42+
<div data-show="true" class="ant-alert ant-alert-warning ant-alert-with-description"><i class="anticon anticon-exclamation-circle-o ant-alert-icon"></i><span class="ant-alert-message">Warning</span><span class="ant-alert-description">This is a warning notice about copywriting.</span></div>
43+
<div data-show="true" class="ant-alert ant-alert-error ant-alert-with-description"><i class="anticon anticon-cross-circle-o ant-alert-icon"></i><span class="ant-alert-message">Error</span><span class="ant-alert-description">This is an error message about copywriting.</span></div>
7644
</div>
7745
`;
7846
7947
exports[`renders ./components/alert/demo/smooth-closed.md correctly 1`] = `
8048
<div>
81-
<div data-show="true" class="ant-alert ant-alert-success ant-alert-no-icon"><span class="ant-alert-message">Alert Message Text</span><span class="ant-alert-description"></span>
82-
<a class="ant-alert-close-icon">
83-
<i class="anticon anticon-cross"></i>
84-
</a>
85-
</div>
49+
<div data-show="true" class="ant-alert ant-alert-success ant-alert-no-icon"><span class="ant-alert-message">Alert Message Text</span><span class="ant-alert-description"></span><a class="ant-alert-close-icon"><i class="anticon anticon-cross"></i></a></div>
8650
</div>
8751
`;
8852

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

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,11 @@ exports[`renders ./components/anchor/demo/basic.md correctly 1`] = `
66
<div class="ant-anchor-wrapper" style="max-height: 100vh;">
77
<div class="ant-anchor">
88
<div class="ant-anchor-ink"><span class="ant-anchor-ink-ball"></span></div>
9-
<div class="ant-anchor-link">
10-
<a href="#components-anchor-demo-basic" title="Basic demo" class="ant-anchor-link-title">Basic demo</a>
11-
</div>
12-
<div class="ant-anchor-link">
13-
<a href="#components-anchor-demo-static-anchor" title="Fixed demo" class="ant-anchor-link-title">Fixed demo</a>
14-
</div>
15-
<div class="ant-anchor-link">
16-
<a href="#API" title="API" class="ant-anchor-link-title">API</a>
17-
<div class="ant-anchor-link">
18-
<a href="#Anchor-Props" title="Anchor Props" class="ant-anchor-link-title">Anchor Props</a>
19-
</div>
20-
<div class="ant-anchor-link">
21-
<a href="#Link-Props" title="Link Props" class="ant-anchor-link-title">Link Props</a>
22-
</div>
9+
<div class="ant-anchor-link"><a href="#components-anchor-demo-basic" title="Basic demo" class="ant-anchor-link-title">Basic demo</a></div>
10+
<div class="ant-anchor-link"><a href="#components-anchor-demo-static-anchor" title="Fixed demo" class="ant-anchor-link-title">Fixed demo</a></div>
11+
<div class="ant-anchor-link"><a href="#API" title="API" class="ant-anchor-link-title">API</a>
12+
<div class="ant-anchor-link"><a href="#Anchor-Props" title="Anchor Props" class="ant-anchor-link-title">Anchor Props</a></div>
13+
<div class="ant-anchor-link"><a href="#Link-Props" title="Link Props" class="ant-anchor-link-title">Link Props</a></div>
2314
</div>
2415
</div>
2516
</div>
@@ -31,20 +22,11 @@ exports[`renders ./components/anchor/demo/static.md correctly 1`] = `
3122
<div class="ant-anchor-wrapper" style="max-height: 100vh;">
3223
<div class="ant-anchor fixed">
3324
<div class="ant-anchor-ink"><span class="ant-anchor-ink-ball"></span></div>
34-
<div class="ant-anchor-link">
35-
<a href="#components-anchor-demo-basic" title="Basic demo" class="ant-anchor-link-title">Basic demo</a>
36-
</div>
37-
<div class="ant-anchor-link">
38-
<a href="#components-anchor-demo-static-anchor" title="Fixed demo" class="ant-anchor-link-title">Fixed demo</a>
39-
</div>
40-
<div class="ant-anchor-link">
41-
<a href="#API" title="API" class="ant-anchor-link-title">API</a>
42-
<div class="ant-anchor-link">
43-
<a href="#Anchor-Props" title="Anchor Props" class="ant-anchor-link-title">Anchor Props</a>
44-
</div>
45-
<div class="ant-anchor-link">
46-
<a href="#Link-Props" title="Link Props" class="ant-anchor-link-title">Link Props</a>
47-
</div>
25+
<div class="ant-anchor-link"><a href="#components-anchor-demo-basic" title="Basic demo" class="ant-anchor-link-title">Basic demo</a></div>
26+
<div class="ant-anchor-link"><a href="#components-anchor-demo-static-anchor" title="Fixed demo" class="ant-anchor-link-title">Fixed demo</a></div>
27+
<div class="ant-anchor-link"><a href="#API" title="API" class="ant-anchor-link-title">API</a>
28+
<div class="ant-anchor-link"><a href="#Anchor-Props" title="Anchor Props" class="ant-anchor-link-title">Anchor Props</a></div>
29+
<div class="ant-anchor-link"><a href="#Link-Props" title="Link Props" class="ant-anchor-link-title">Link Props</a></div>
4830
</div>
4931
</div>
5032
</div>

0 commit comments

Comments
 (0)