From 35aa95155016c36eec9f09fa2237160c0f2a3756 Mon Sep 17 00:00:00 2001 From: Yiming Date: Thu, 24 Mar 2022 13:36:10 +0800 Subject: [PATCH 1/2] fix: fix Ant Design Charts url (#34685) --- docs/react/recommendation.zh-CN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/react/recommendation.zh-CN.md b/docs/react/recommendation.zh-CN.md index a7318a333a..3004e8913c 100644 --- a/docs/react/recommendation.zh-CN.md +++ b/docs/react/recommendation.zh-CN.md @@ -7,7 +7,7 @@ title: 社区精选组件 | 类型 | 推荐组件 | | --- | --- | -| 可视化图表 | [Ant Design Charts](https://charts.ant.design/zh-CN/) [AntV 数据可视化解决方案](https://antv.vision/zh) | +| 可视化图表 | [Ant Design Charts](https://charts.ant.design/zh) [AntV 数据可视化解决方案](https://antv.vision/zh) | | React Hooks 库 | [ahooks](https://github.com/alibaba/hooks) | | 表单 | [ProForm](https://procomponents.ant.design/components/form) [Formily](https://github.com/alibaba/formily) [react-hook-form](https://github.com/react-hook-form/react-hook-form) [formik](https://github.com/formium/formik) | | 路由 | [react-router](https://github.com/ReactTraining/react-router) | From 5e0c232077aa6235ad477a20f728e1a97c159754 Mon Sep 17 00:00:00 2001 From: Zack Chang <73225408+jrr997@users.noreply.github.com> Date: Thu, 24 Mar 2022 14:27:42 +0800 Subject: [PATCH 2/2] chore: update Item component test case (#34686) Co-authored-by: Zack Chang --- components/list/__tests__/Item.test.js | 4 +- .../__tests__/__snapshots__/Item.test.js.snap | 164 +++++------------- 2 files changed, 50 insertions(+), 118 deletions(-) diff --git a/components/list/__tests__/Item.test.js b/components/list/__tests__/Item.test.js index 67985ffaa3..44c5fa1052 100644 --- a/components/list/__tests__/Item.test.js +++ b/components/list/__tests__/Item.test.js @@ -151,7 +151,7 @@ describe('List Item Layout', () => { renderItem={item => {item.title}} />, ); - expect(wrapper).toMatchSnapshot(); + expect(wrapper.render()).toMatchSnapshot(); }); it('rowKey could be function', () => { @@ -176,6 +176,6 @@ describe('List Item Layout', () => { renderItem={item => {item.title}} />, ); - expect(wrapper).toMatchSnapshot(); + expect(wrapper.render()).toMatchSnapshot(); }); }); diff --git a/components/list/__tests__/__snapshots__/Item.test.js.snap b/components/list/__tests__/__snapshots__/Item.test.js.snap index 1c4323d456..abd9b98b31 100644 --- a/components/list/__tests__/__snapshots__/Item.test.js.snap +++ b/components/list/__tests__/__snapshots__/Item.test.js.snap @@ -58,139 +58,71 @@ exports[`List Item Layout horizontal itemLayout List should accept extra node 1` `; exports[`List Item Layout rowKey could be function 1`] = ` -
- -
-
-
    - -
  • - ant design -
  • -
    - -
  • - ant design -
  • -
    - -
  • - ant design -
  • -
    -
-
-
-
+ ant design + +
  • + ant design +
  • +
  • + ant design +
  • + +
    -
    + `; exports[`List Item Layout rowKey could be string 1`] = ` -
    - -
    -
    -
      - -
    • - ant design -
    • -
      - -
    • - ant design -
    • -
      - -
    • - ant design -
    • -
      -
    -
    -
    -
    + ant design + +
  • + ant design +
  • +
  • + ant design +
  • + +
    -
    + `; exports[`List Item Layout should render in RTL direction 1`] = `