From e17cd4ae27a115e946603cd2454dd5c5f86743b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E6=9E=AB?= <7971419+crazyair@users.noreply.github.com> Date: Fri, 22 Mar 2024 20:49:55 +0800 Subject: [PATCH] test: keep spaces (#47024) * feat: snap * feat: up snap --- .../__snapshots__/demo-extend.test.ts.snap | 2 +- .../__tests__/__snapshots__/demo.test.ts.snap | 2 +- .../__snapshots__/demo-extend.test.ts.snap | 6 +-- .../__snapshots__/demo.test.tsx.snap | 4 +- .../__snapshots__/demo-extend.test.ts.snap | 2 +- .../__tests__/__snapshots__/demo.test.ts.snap | 2 +- .../__tests__/__snapshots__/demo.test.ts.snap | 6 +-- .../__snapshots__/demo-extend.test.ts.snap | 2 +- .../__tests__/__snapshots__/demo.test.ts.snap | 2 +- .../__snapshots__/demo-extend.test.ts.snap | 16 +++--- .../__snapshots__/demo.test.tsx.snap | 16 +++--- .../__snapshots__/demo-extend.test.ts.snap | 4 +- .../__tests__/__snapshots__/demo.test.ts.snap | 4 +- .../__snapshots__/demo-extend.test.ts.snap | 2 +- .../__snapshots__/demo-extend.test.ts.snap | 4 +- .../__tests__/__snapshots__/demo.test.ts.snap | 4 +- .../__snapshots__/demo-extend.test.ts.snap | 4 +- .../__tests__/__snapshots__/demo.test.ts.snap | 4 +- .../__snapshots__/demo.test.tsx.snap | 2 +- .../__snapshots__/demo-extend.test.ts.snap | 32 ++++++------ .../__tests__/__snapshots__/demo.test.ts.snap | 50 +++++++++---------- .../__tests__/__snapshots__/demo.test.ts.snap | 6 +-- .../__snapshots__/demo-extend.test.ts.snap | 12 ++--- .../__tests__/__snapshots__/demo.test.ts.snap | 10 ++-- .../__snapshots__/demo-extend.test.ts.snap | 16 +++--- .../__snapshots__/demo.test.tsx.snap | 14 +++--- tests/setupAfterEnv.ts | 5 +- 27 files changed, 117 insertions(+), 116 deletions(-) diff --git a/components/back-top/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/back-top/__tests__/__snapshots__/demo-extend.test.ts.snap index 9692dcb13f..a40ca977d9 100644 --- a/components/back-top/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/back-top/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -9,7 +9,7 @@ Array [ - gray + gray , button., ] diff --git a/components/back-top/__tests__/__snapshots__/demo.test.ts.snap b/components/back-top/__tests__/__snapshots__/demo.test.ts.snap index 84345cfb31..f184cc5b7c 100644 --- a/components/back-top/__tests__/__snapshots__/demo.test.ts.snap +++ b/components/back-top/__tests__/__snapshots__/demo.test.ts.snap @@ -9,7 +9,7 @@ Array [ - gray + gray , button., ] diff --git a/components/cascader/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/cascader/__tests__/__snapshots__/demo-extend.test.ts.snap index 3a96371621..73889f9b43 100644 --- a/components/cascader/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/cascader/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -498,10 +498,10 @@ exports[`renders components/cascader/demo/custom-render.tsx extend context corre class="ant-select-selection-item" > - Zhejiang / + Zhejiang / - Hangzhou / + Hangzhou / West Lake ( @@ -660,7 +660,7 @@ exports[`renders components/cascader/demo/custom-render.tsx extend context corre exports[`renders components/cascader/demo/custom-trigger.tsx extend context correctly 1`] = ` - Unselect + Unselect  Change city diff --git a/components/cascader/__tests__/__snapshots__/demo.test.tsx.snap b/components/cascader/__tests__/__snapshots__/demo.test.tsx.snap index dec2f7de10..25aae2367a 100644 --- a/components/cascader/__tests__/__snapshots__/demo.test.tsx.snap +++ b/components/cascader/__tests__/__snapshots__/demo.test.tsx.snap @@ -214,12 +214,12 @@ exports[`renders components/cascader/demo/custom-render.tsx correctly 1`] = ` Zhejiang - / + / Hangzhou - / + / West Lake diff --git a/components/collapse/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/collapse/__tests__/__snapshots__/demo-extend.test.ts.snap index ca185d516c..9fa560e620 100644 --- a/components/collapse/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/collapse/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -1083,7 +1083,7 @@ Array [ ,
, - Expand Icon Position: + Expand Icon Position: ,
,
, - Expand Icon Position: + Expand Icon Position: ,
- HEX: + HEX: #1677ff @@ -163,7 +163,7 @@ exports[`renders components/color-picker/demo/format.tsx correctly 1`] = ` class="ant-space-item" > - HSB: + HSB: hsb(215, 91%, 100%) @@ -196,7 +196,7 @@ exports[`renders components/color-picker/demo/format.tsx correctly 1`] = ` class="ant-space-item" > - RGB: + RGB: rgb(22, 119, 255) diff --git a/components/empty/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/empty/__tests__/__snapshots__/demo-extend.test.ts.snap index d8efe30ab8..65e1b4bdfe 100644 --- a/components/empty/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/empty/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -1091,7 +1091,7 @@ exports[`renders components/empty/demo/customize.tsx extend context correctly 1` class="ant-empty-description" > - Customize + Customize diff --git a/components/empty/__tests__/__snapshots__/demo.test.ts.snap b/components/empty/__tests__/__snapshots__/demo.test.ts.snap index 48958f6dd1..278e06c43c 100644 --- a/components/empty/__tests__/__snapshots__/demo.test.ts.snap +++ b/components/empty/__tests__/__snapshots__/demo.test.ts.snap @@ -739,7 +739,7 @@ exports[`renders components/empty/demo/customize.tsx correctly 1`] = ` class="ant-empty-description" > - Customize + Customize diff --git a/components/form/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/form/__tests__/__snapshots__/demo-extend.test.ts.snap index 9b70f87b42..2025e07b09 100644 --- a/components/form/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/form/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -2451,7 +2451,7 @@ exports[`renders components/form/demo/dependencies.tsx extend context correctly class="ant-typography" >

- Only Update when + Only Update when password2 @@ -2587,7 +2587,7 @@ Array [ /> - Apple + Apple

@@ -7216,7 +7216,7 @@ exports[`renders components/form/demo/form-context.tsx extend context correctly - ( + ( - Or + Or @@ -10016,7 +10016,7 @@ exports[`renders components/form/demo/register.tsx extend context correctly 1`] /> - I have read the + I have read the @@ -20018,10 +20018,10 @@ Array [ class="ant-typography" >
-      Name Value:
+      Name Value: 
     
-      Custom Value: name:
+      Custom Value: name: 
     
, ] diff --git a/components/form/__tests__/__snapshots__/demo.test.tsx.snap b/components/form/__tests__/__snapshots__/demo.test.tsx.snap index ccc0ecfde4..2137144877 100644 --- a/components/form/__tests__/__snapshots__/demo.test.tsx.snap +++ b/components/form/__tests__/__snapshots__/demo.test.tsx.snap @@ -1849,7 +1849,7 @@ exports[`renders components/form/demo/dependencies.tsx correctly 1`] = ` class="ant-typography" >

- Only Update when + Only Update when password2 @@ -1983,7 +1983,7 @@ Array [ /> - Apple + Apple

@@ -4149,7 +4149,7 @@ exports[`renders components/form/demo/form-context.tsx correctly 1`] = ` - ( + ( - Or + Or @@ -6551,7 +6551,7 @@ exports[`renders components/form/demo/register.tsx correctly 1`] = ` />
- I have read the + I have read the @@ -8238,10 +8238,10 @@ Array [ class="ant-typography" >
-      Name Value:
+      Name Value: 
     
-      Custom Value:
+      Custom Value: 
     
, ] diff --git a/components/grid/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/grid/__tests__/__snapshots__/demo-extend.test.ts.snap index 62d97b5865..158de84038 100644 --- a/components/grid/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/grid/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -880,7 +880,7 @@ exports[`renders components/grid/demo/offset.tsx extend context correctly 2`] = exports[`renders components/grid/demo/playground.tsx extend context correctly 1`] = ` Array [ - Horizontal Gutter (px): + Horizontal Gutter (px): ,
, - Vertical Gutter (px): + Vertical Gutter (px): ,
- Horizontal Gutter (px): + Horizontal Gutter (px): ,
, - Vertical Gutter (px): + Vertical Gutter (px): ,
- scaleStep: + scaleStep:
diff --git a/components/notification/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/notification/__tests__/__snapshots__/demo-extend.test.ts.snap index 9e9fc643fa..8ea4980e09 100644 --- a/components/notification/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/notification/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -552,7 +552,7 @@ exports[`renders components/notification/demo/stack.tsx extend context correctly class="ant-space-item" > - Enabled: + Enabled:
- Threshold: + Threshold:
- Enabled: + Enabled:
- Threshold: + Threshold:
- Your account has been frozen. + Your account has been frozen. Thaw immediately > @@ -1266,7 +1266,7 @@ exports[`renders components/result/demo/error.tsx extend context correctly 1`] = /> - Your account is not yet eligible to apply. + Your account is not yet eligible to apply. Apply Unlock > diff --git a/components/result/__tests__/__snapshots__/demo.test.ts.snap b/components/result/__tests__/__snapshots__/demo.test.ts.snap index 08b3670df1..a6d680777a 100644 --- a/components/result/__tests__/__snapshots__/demo.test.ts.snap +++ b/components/result/__tests__/__snapshots__/demo.test.ts.snap @@ -1228,7 +1228,7 @@ exports[`renders components/result/demo/error.tsx correctly 1`] = ` /> - Your account has been frozen. + Your account has been frozen. Thaw immediately > @@ -1256,7 +1256,7 @@ exports[`renders components/result/demo/error.tsx correctly 1`] = ` /> - Your account is not yet eligible to apply. + Your account is not yet eligible to apply. Apply Unlock > diff --git a/components/select/__tests__/__snapshots__/demo.test.tsx.snap b/components/select/__tests__/__snapshots__/demo.test.tsx.snap index 4717c13196..134959e433 100644 --- a/components/select/__tests__/__snapshots__/demo.test.tsx.snap +++ b/components/select/__tests__/__snapshots__/demo.test.tsx.snap @@ -1898,7 +1898,7 @@ exports[`renders components/select/demo/maxCount.tsx correctly 1`] = ` 1 - / + / 3 diff --git a/components/table/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/table/__tests__/__snapshots__/demo-extend.test.ts.snap index ae446a0726..0cdd6f43ff 100644 --- a/components/table/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/table/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -19527,7 +19527,7 @@ Array [ - More + More - More + More - More + More - More + More - More + More - More + More - More + More - More + More - More + More - false: + false:
- Invite + Invite John Brown @@ -162,7 +162,7 @@ exports[`renders components/table/demo/basic.tsx correctly 1`] = ` class="ant-space-item" > - Invite + Invite Jim Green @@ -222,7 +222,7 @@ exports[`renders components/table/demo/basic.tsx correctly 1`] = ` class="ant-space-item" > - Invite + Invite Joe Black @@ -14038,7 +14038,7 @@ exports[`renders components/table/demo/jsx.tsx correctly 1`] = ` class="ant-space-item" > - Invite + Invite Brown @@ -14096,7 +14096,7 @@ exports[`renders components/table/demo/jsx.tsx correctly 1`] = ` class="ant-space-item" > - Invite + Invite Green @@ -14159,7 +14159,7 @@ exports[`renders components/table/demo/jsx.tsx correctly 1`] = ` class="ant-space-item" > - Invite + Invite Black @@ -15932,7 +15932,7 @@ Array [ - More + More - More + More - More + More - More + More - More + More - More + More - More + More - More + More - More + More - Invite + Invite John Brown @@ -18435,7 +18435,7 @@ exports[`renders components/table/demo/pagination.tsx correctly 1`] = ` class="ant-space-item" > - Invite + Invite Jim Green @@ -18497,7 +18497,7 @@ exports[`renders components/table/demo/pagination.tsx correctly 1`] = ` class="ant-space-item" > - Invite + Invite Joe Black @@ -21296,7 +21296,7 @@ exports[`renders components/table/demo/row-selection-custom-debug.tsx correctly > false - : + :