diff --git a/components/button/__tests__/__snapshots__/index.test.tsx.snap b/components/button/__tests__/__snapshots__/index.test.tsx.snap index 7f044f507d..651851bda7 100644 --- a/components/button/__tests__/__snapshots__/index.test.tsx.snap +++ b/components/button/__tests__/__snapshots__/index.test.tsx.snap @@ -69,18 +69,63 @@ exports[`Button renders Chinese characters correctly 2`] = ` `; exports[`Button renders Chinese characters correctly 3`] = ` - + `; exports[`Button renders Chinese characters correctly 4`] = ` - + + + + + 按钮 + + `; exports[`Button renders Chinese characters correctly 5`] = ` diff --git a/components/button/__tests__/index.test.tsx b/components/button/__tests__/index.test.tsx index d389d65f24..50453ee104 100644 --- a/components/button/__tests__/index.test.tsx +++ b/components/button/__tests__/index.test.tsx @@ -51,14 +51,14 @@ describe('Button', () => { // should not insert space when there is icon expect(mount().render()).toMatchSnapshot(); // should not insert space when there is icon - expect( + expect(mount( , - ).toMatchSnapshot(); + ).render()).toMatchSnapshot(); // should not insert space when there is icon - expect().toMatchSnapshot(); + expect(mount().render()).toMatchSnapshot(); // should not insert space when there is icon while loading expect( mount( diff --git a/components/input-number/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/input-number/__tests__/__snapshots__/demo-extend.test.ts.snap index 73712387ad..83bab7495c 100644 --- a/components/input-number/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/input-number/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -1846,164 +1846,6 @@ Array [ , -
, -
, -
-
-
- -
-
-
-
-
- - - - - -
-
- - - - - - - - - - -
-
- -
-
-
-
- - - - - -
-
-
-
, ] `; diff --git a/components/input-number/__tests__/__snapshots__/demo.test.js.snap b/components/input-number/__tests__/__snapshots__/demo.test.js.snap index 512715d692..1a00d1d82b 100644 --- a/components/input-number/__tests__/__snapshots__/demo.test.js.snap +++ b/components/input-number/__tests__/__snapshots__/demo.test.js.snap @@ -1573,164 +1573,6 @@ Array [ , -
, -
, -
-
-
- -
-
-
-
-
- - - - - -
-
- - - - - - - - - - -
-
- -
-
-
-
- - - - - -
-
-
-
, ] `; diff --git a/components/input-number/demo/prefix.md b/components/input-number/demo/prefix.md index 04623a63c6..ff46961e53 100644 --- a/components/input-number/demo/prefix.md +++ b/components/input-number/demo/prefix.md @@ -14,7 +14,7 @@ title: Add a prefix inside input. ```jsx -import { Form, InputNumber, Tooltip } from 'antd'; +import { InputNumber } from 'antd'; import { InfoCircleOutlined, SmileOutlined, UserOutlined } from '@ant-design/icons'; ReactDOM.render( @@ -26,18 +26,6 @@ ReactDOM.render(

-
-
-
- - } - /> - -
, mountNode, ); diff --git a/components/layout/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/layout/__tests__/__snapshots__/demo-extend.test.ts.snap index 0fdc682453..5e43247e35 100644 --- a/components/layout/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/layout/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -717,7 +717,7 @@ exports[`renders ./components/layout/demo/fixed.md extend context correctly 1`] exports[`renders ./components/layout/demo/fixed-sider.md extend context correctly 1`] = `