From 5aad5681e546869830d19be98890acd14ea984ad Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Sun, 26 Apr 2020 16:37:33 +0800 Subject: [PATCH] test: update snap --- antdv-demo | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 12 +- .../__tests__/__snapshots__/demo.test.js.snap | 8 +- .../__tests__/__snapshots__/demo.test.js.snap | 20 +- .../__tests__/__snapshots__/demo.test.js.snap | 8 +- .../__tests__/__snapshots__/demo.test.js.snap | 40 ++- .../__tests__/__snapshots__/demo.test.js.snap | 10 +- .../__tests__/__snapshots__/demo.test.js.snap | 26 +- .../__tests__/__snapshots__/demo.test.js.snap | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 8 +- .../__tests__/__snapshots__/demo.test.js.snap | 8 +- .../__tests__/__snapshots__/demo.test.js.snap | 168 +++++++++--- .../__tests__/__snapshots__/demo.test.js.snap | 8 +- .../__tests__/__snapshots__/demo.test.js.snap | 10 +- .../__tests__/__snapshots__/demo.test.js.snap | 248 +++++++++++++----- .../__tests__/__snapshots__/demo.test.js.snap | 36 ++- .../__tests__/__snapshots__/demo.test.js.snap | 88 +++++-- .../__tests__/__snapshots__/demo.test.js.snap | 136 +++++++--- .../__tests__/__snapshots__/demo.test.js.snap | 6 +- .../__tests__/__snapshots__/demo.test.js.snap | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 64 +++-- .../__tests__/__snapshots__/demo.test.js.snap | 40 ++- .../__tests__/__snapshots__/demo.test.js.snap | 116 +++++++- .../__tests__/__snapshots__/demo.test.js.snap | 56 +++- .../__tests__/__snapshots__/demo.test.js.snap | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 168 +++++++++--- .../__tests__/__snapshots__/demo.test.js.snap | 64 ++++- .../__tests__/__snapshots__/demo.test.js.snap | 54 +++- .../__tests__/__snapshots__/demo.test.js.snap | 16 +- .../__tests__/__snapshots__/demo.test.js.snap | 2 +- 31 files changed, 1111 insertions(+), 325 deletions(-) diff --git a/antdv-demo b/antdv-demo index 8dca2d2cf..a2a2d6662 160000 --- a/antdv-demo +++ b/antdv-demo @@ -1 +1 @@ -Subproject commit 8dca2d2cfcaaf970f494ebfb65ee55dfca69870c +Subproject commit a2a2d666224e5ee69b85ee5a0f35b1f845c96885 diff --git a/components/avatar/__tests__/__snapshots__/demo.test.js.snap b/components/avatar/__tests__/__snapshots__/demo.test.js.snap index 4986a14ff..221432c1a 100644 --- a/components/avatar/__tests__/__snapshots__/demo.test.js.snap +++ b/components/avatar/__tests__/__snapshots__/demo.test.js.snap @@ -9,6 +9,14 @@ exports[`renders ./antdv-demo/docs/avatar/demo/basic.md correctly 1`] = ` `; -exports[`renders ./antdv-demo/docs/avatar/demo/dynamic.md correctly 1`] = `
U
`; +exports[`renders ./antdv-demo/docs/avatar/demo/dynamic.md correctly 1`] = ` +
+ U +
+`; -exports[`renders ./antdv-demo/docs/avatar/demo/type.md correctly 1`] = `
U USER U
`; +exports[`renders ./antdv-demo/docs/avatar/demo/type.md correctly 1`] = ` +
U USER + U +
+`; diff --git a/components/badge/__tests__/__snapshots__/demo.test.js.snap b/components/badge/__tests__/__snapshots__/demo.test.js.snap index e2f48a52e..f5f0b7f2d 100644 --- a/components/badge/__tests__/__snapshots__/demo.test.js.snap +++ b/components/badge/__tests__/__snapshots__/demo.test.js.snap @@ -18,7 +18,9 @@ exports[`renders ./antdv-demo/docs/badge/demo/change.md correctly 1`] = ` exports[`renders ./antdv-demo/docs/badge/demo/colors.md correctly 1`] = `
-

Presets:

+

+ Presets: +

pink
red
@@ -34,7 +36,9 @@ exports[`renders ./antdv-demo/docs/badge/demo/colors.md correctly 1`] = `
gold
lime
-

Custom:

+

+ Custom: +

#f50
#2db7f5
#87d068
#108ee9
`; diff --git a/components/breadcrumb/__tests__/__snapshots__/demo.test.js.snap b/components/breadcrumb/__tests__/__snapshots__/demo.test.js.snap index 80fe80e24..21ad9d512 100644 --- a/components/breadcrumb/__tests__/__snapshots__/demo.test.js.snap +++ b/components/breadcrumb/__tests__/__snapshots__/demo.test.js.snap @@ -10,12 +10,26 @@ exports[`renders ./antdv-demo/docs/breadcrumb/demo/overlay.md correctly 1`] = ` exports[`renders ./antdv-demo/docs/breadcrumb/demo/separator.md correctly 1`] = `
-
Home>Application Center>Application List>An Application>
-
Home>Application Center>Application List>An Application>
+
Home> + Application Center + > + Application List + >An Application>
+
Home> + Application Center + > + Application List + >An Application>
`; -exports[`renders ./antdv-demo/docs/breadcrumb/demo/separator-indepent.md correctly 1`] = `
Location:Application Center/Application List/An Application
`; +exports[`renders ./antdv-demo/docs/breadcrumb/demo/separator-indepent.md correctly 1`] = ` +
Location: + Application Center + / + Application List + /An Application
+`; exports[`renders ./antdv-demo/docs/breadcrumb/demo/withIcon.md correctly 1`] = `
/ Application List/ diff --git a/components/button/__tests__/__snapshots__/demo.test.js.snap b/components/button/__tests__/__snapshots__/demo.test.js.snap index 70f25ac8b..ef8a5d725 100644 --- a/components/button/__tests__/__snapshots__/demo.test.js.snap +++ b/components/button/__tests__/__snapshots__/demo.test.js.snap @@ -77,7 +77,13 @@ exports[`renders ./antdv-demo/docs/button/demo/multiple.md correctly 1`] = ` exports[`renders ./antdv-demo/docs/button/demo/size.md correctly 1`] = `
-




@@ -70,14 +72,30 @@ exports[`renders ./antdv-demo/docs/card/demo/grid-card.md correctly 1`] = `
-
Content
-
Content
-
Content
-
Content
-
Content
-
Content
-
Content
-
Content
+
+ Content +
+
+ Content +
+
+ Content +
+
+ Content +
+
+ Content +
+
+ Content +
+
+ Content +
+
+ Content +
`; @@ -321,7 +339,9 @@ exports[`renders ./antdv-demo/docs/card/demo/tabs.md correctly 1`] = `
-

app content

+

+ app content +

diff --git a/components/carousel/__tests__/__snapshots__/demo.test.js.snap b/components/carousel/__tests__/__snapshots__/demo.test.js.snap index 24a5f18a8..e7fb046b1 100644 --- a/components/carousel/__tests__/__snapshots__/demo.test.js.snap +++ b/components/carousel/__tests__/__snapshots__/demo.test.js.snap @@ -357,7 +357,15 @@ exports[`renders ./antdv-demo/docs/carousel/demo/fade.md correctly 1`] = ` exports[`renders ./antdv-demo/docs/carousel/demo/position.md correctly 1`] = `
-
+
-
Card content
+
+ Card content +
@@ -72,7 +74,9 @@ exports[`renders ./antdv-demo/docs/list/demo/grid.md correctly 1`] = `
Title 2
-
Card content
+
+ Card content +
@@ -84,7 +88,9 @@ exports[`renders ./antdv-demo/docs/list/demo/grid.md correctly 1`] = `
Title 3
-
Card content
+
+ Card content +
@@ -96,7 +102,9 @@ exports[`renders ./antdv-demo/docs/list/demo/grid.md correctly 1`] = `
Title 4
-
Card content
+
+ Card content +
@@ -173,7 +181,9 @@ exports[`renders ./antdv-demo/docs/list/demo/resposive.md correctly 1`] = `
Title 1
-
Card content
+
+ Card content +
@@ -185,7 +195,9 @@ exports[`renders ./antdv-demo/docs/list/demo/resposive.md correctly 1`] = `
Title 2
-
Card content
+
+ Card content +
@@ -197,7 +209,9 @@ exports[`renders ./antdv-demo/docs/list/demo/resposive.md correctly 1`] = `
Title 3
-
Card content
+
+ Card content +
@@ -209,7 +223,9 @@ exports[`renders ./antdv-demo/docs/list/demo/resposive.md correctly 1`] = `
Title 4
-
Card content
+
+ Card content +
@@ -221,7 +237,9 @@ exports[`renders ./antdv-demo/docs/list/demo/resposive.md correctly 1`] = `
Title 5
-
Card content
+
+ Card content +
@@ -233,7 +251,9 @@ exports[`renders ./antdv-demo/docs/list/demo/resposive.md correctly 1`] = `
Title 6
-
Card content
+
+ Card content +
@@ -245,64 +265,112 @@ exports[`renders ./antdv-demo/docs/list/demo/resposive.md correctly 1`] = ` exports[`renders ./antdv-demo/docs/list/demo/simple.md correctly 1`] = `
-

Default Size

+

+ Default Size +

-
Header
+
+ Header +
    -
  • Racing car sprays burning fuel into crowd.
  • -
  • Japanese princess to wed commoner.
  • -
  • Australian walks 100km after outback crash.
  • -
  • Man charged over missing wedding girl.
  • -
  • Los Angeles battles huge wildfires.
  • +
  • + Racing car sprays burning fuel into crowd. +
  • +
  • + Japanese princess to wed commoner. +
  • +
  • + Australian walks 100km after outback crash. +
  • +
  • + Man charged over missing wedding girl. +
  • +
  • + Los Angeles battles huge wildfires. +
-

Small Size

+

+ Small Size +

-
Header
+
+ Header +
    -
  • Racing car sprays burning fuel into crowd.
  • -
  • Japanese princess to wed commoner.
  • -
  • Australian walks 100km after outback crash.
  • -
  • Man charged over missing wedding girl.
  • -
  • Los Angeles battles huge wildfires.
  • +
  • + Racing car sprays burning fuel into crowd. +
  • +
  • + Japanese princess to wed commoner. +
  • +
  • + Australian walks 100km after outback crash. +
  • +
  • + Man charged over missing wedding girl. +
  • +
  • + Los Angeles battles huge wildfires. +
-

Large Size

+

+ Large Size +

-
Header
+
+ Header +
    -
  • Racing car sprays burning fuel into crowd.
  • -
  • Japanese princess to wed commoner.
  • -
  • Australian walks 100km after outback crash.
  • -
  • Man charged over missing wedding girl.
  • -
  • Los Angeles battles huge wildfires.
  • +
  • + Racing car sprays burning fuel into crowd. +
  • +
  • + Japanese princess to wed commoner. +
  • +
  • + Australian walks 100km after outback crash. +
  • +
  • + Man charged over missing wedding girl. +
  • +
  • + Los Angeles battles huge wildfires. +
diff --git a/components/locale-provider/__tests__/__snapshots__/demo.test.js.snap b/components/locale-provider/__tests__/__snapshots__/demo.test.js.snap index 58d4cf583..82a420832 100644 --- a/components/locale-provider/__tests__/__snapshots__/demo.test.js.snap +++ b/components/locale-provider/__tests__/__snapshots__/demo.test.js.snap @@ -3,7 +3,11 @@ exports[`renders ./antdv-demo/docs/locale-provider/demo/all.md correctly 1`] = `
Change locale of components: -
+
diff --git a/components/mentions/__tests__/__snapshots__/demo.test.js.snap b/components/mentions/__tests__/__snapshots__/demo.test.js.snap index 402a5da4f..86c980962 100644 --- a/components/mentions/__tests__/__snapshots__/demo.test.js.snap +++ b/components/mentions/__tests__/__snapshots__/demo.test.js.snap @@ -41,6 +41,6 @@ exports[`renders ./antdv-demo/docs/mentions/demo/readonly.md correctly 1`] = `
-
+
`; diff --git a/components/menu/__tests__/__snapshots__/demo.test.js.snap b/components/menu/__tests__/__snapshots__/demo.test.js.snap index 720418f3c..25ead537a 100644 --- a/components/menu/__tests__/__snapshots__/demo.test.js.snap +++ b/components/menu/__tests__/__snapshots__/demo.test.js.snap @@ -43,15 +43,23 @@ exports[`renders ./antdv-demo/docs/menu/demo/inline.md correctly 1`] = `
Item 1
  • Item 2
      - - + +
  • @@ -85,10 +93,18 @@ exports[`renders ./antdv-demo/docs/menu/demo/inline-collapsed.md correctly 1`] =