From 708edde641c24352052f89c9ec2dcc4ab97b0a6d Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sat, 24 Oct 2020 21:08:21 +0800 Subject: [PATCH] test: update cXXX snap --- components/card/Meta.tsx | 14 ++++---------- .../__tests__/__snapshots__/demo.test.js.snap | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 16 +++++++--------- .../__tests__/__snapshots__/demo.test.js.snap | 14 ++++++++------ .../__tests__/__snapshots__/index.test.js.snap | 2 +- components/list/Item.jsx | 2 +- components/vc-tabs/src/TabBarTabsNode.jsx | 2 +- 7 files changed, 23 insertions(+), 29 deletions(-) diff --git a/components/card/Meta.tsx b/components/card/Meta.tsx index 04a888be3..f72238e1a 100644 --- a/components/card/Meta.tsx +++ b/components/card/Meta.tsx @@ -1,4 +1,4 @@ -import { defineComponent, inject, PropType, VNodeTypes } from 'vue'; +import { defineComponent, inject } from 'vue'; import PropTypes from '../_util/vue-types'; import { getComponent } from '../_util/props-util'; import { defaultConfigProvider } from '../config-provider'; @@ -7,15 +7,9 @@ export default defineComponent({ name: 'ACardMeta', props: { prefixCls: PropTypes.string, - title: { - type: Object as PropType, - }, - description: { - type: Object as PropType, - }, - avatar: { - type: Object as PropType, - }, + title: PropTypes.VNodeChild, + description: PropTypes.VNodeChild, + avatar: PropTypes.VNodeChild, }, setup() { return { diff --git a/components/card/__tests__/__snapshots__/demo.test.js.snap b/components/card/__tests__/__snapshots__/demo.test.js.snap index 5f421cae1..bef64087a 100644 --- a/components/card/__tests__/__snapshots__/demo.test.js.snap +++ b/components/card/__tests__/__snapshots__/demo.test.js.snap @@ -259,7 +259,7 @@ exports[`renders ./antdv-demo/docs/card/demo/meta.md correctly 1`] = `
example
-
+
Card title
This is the description
diff --git a/components/collapse/__tests__/__snapshots__/demo.test.js.snap b/components/collapse/__tests__/__snapshots__/demo.test.js.snap index 7e3d07bbe..1bf083b84 100644 --- a/components/collapse/__tests__/__snapshots__/demo.test.js.snap +++ b/components/collapse/__tests__/__snapshots__/demo.test.js.snap @@ -126,15 +126,13 @@ exports[`renders ./antdv-demo/docs/collapse/demo/extra.md correctly 1`] = `

Expand Icon Position: - -
- +
+ + +
left + +
+
`; diff --git a/components/comment/__tests__/__snapshots__/demo.test.js.snap b/components/comment/__tests__/__snapshots__/demo.test.js.snap index 26176681c..5318bf51a 100644 --- a/components/comment/__tests__/__snapshots__/demo.test.js.snap +++ b/components/comment/__tests__/__snapshots__/demo.test.js.snap @@ -3,7 +3,7 @@ exports[`renders ./antdv-demo/docs/comment/demo/basic.md correctly 1`] = `
-
Han Solo
+
Han Solo
@@ -24,7 +24,7 @@ exports[`renders ./antdv-demo/docs/comment/demo/editor.md correctly 1`] = `
-
Han Solo
+
Han Solo
+
@@ -40,6 +41,7 @@ exports[`renders ./antdv-demo/docs/comment/demo/editor.md correctly 1`] = `
+
@@ -113,7 +115,7 @@ exports[`renders ./antdv-demo/docs/comment/demo/list.md correctly 1`] = ` exports[`renders ./antdv-demo/docs/comment/demo/nested.md correctly 1`] = `
-
Han Solo
+
Han Solo