From a635000a149a343f905c80091be30d38b6397234 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Tue, 8 Mar 2022 16:57:50 +0800 Subject: [PATCH] test: update input snap --- components/input/Input.tsx | 3 +- .../__snapshots__/Search.test.js.snap | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 44 +++++++++---------- .../__snapshots__/index.test.js.snap | 4 +- components/modal/index.tsx | 2 +- 5 files changed, 29 insertions(+), 28 deletions(-) diff --git a/components/input/Input.tsx b/components/input/Input.tsx index 4a03f264b..7fccca4a1 100644 --- a/components/input/Input.tsx +++ b/components/input/Input.tsx @@ -284,6 +284,7 @@ export default defineComponent({ 'bordered', 'htmlSize', 'lazy', + 'showCount', ]); const inputProps = { ...otherProps, @@ -360,7 +361,7 @@ export default defineComponent({ return ( diff --git a/components/input/__tests__/__snapshots__/Search.test.js.snap b/components/input/__tests__/__snapshots__/Search.test.js.snap index d3ae03811..3e0068644 100644 --- a/components/input/__tests__/__snapshots__/Search.test.js.snap +++ b/components/input/__tests__/__snapshots__/Search.test.js.snap @@ -1,5 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Input.Search should support custom Button 1`] = ``; +exports[`Input.Search should support custom Button 1`] = ``; -exports[`Input.Search should support custom button 1`] = ``; +exports[`Input.Search should support custom button 1`] = ``; diff --git a/components/input/__tests__/__snapshots__/demo.test.js.snap b/components/input/__tests__/__snapshots__/demo.test.js.snap index 39bd9fb42..44ffc9a7a 100644 --- a/components/input/__tests__/__snapshots__/demo.test.js.snap +++ b/components/input/__tests__/__snapshots__/demo.test.js.snap @@ -2,32 +2,32 @@ exports[`renders ./components/input/demo/addon.vue correctly 1`] = `
-
Http://.com
+
Http://.com
Http://
-
.com +
.com
-
+
cascader
-
+
`; exports[`renders ./components/input/demo/allow-clear.vue correctly 1`] = ` -
+


`; @@ -38,20 +38,20 @@ exports[`renders ./components/input/demo/autosize-textarea.vue correctly 1`] = `
`; -exports[`renders ./components/input/demo/basic.vue correctly 1`] = ``; +exports[`renders ./components/input/demo/basic.vue correctly 1`] = ``; -exports[`renders ./components/input/demo/borderless.vue correctly 1`] = ``; +exports[`renders ./components/input/demo/borderless.vue correctly 1`] = ``; exports[`renders ./components/input/demo/group.vue correctly 1`] = ` -


Zhejiang +


Zhejiang
-

Option1 +

Option1
-

+

@@ -71,7 +71,7 @@ exports[`renders ./components/input/demo/group.vue correctly 1`] = `
-

Sign Up +

Sign Up
@@ -96,36 +96,36 @@ exports[`renders ./components/input/demo/group.vue correctly 1`] = ` Select Address
-


+


`; -exports[`renders ./components/input/demo/password-input.vue correctly 1`] = ``; +exports[`renders ./components/input/demo/password-input.vue correctly 1`] = ``; -exports[`renders ./components/input/demo/presuffix.vue correctly 1`] = `


RMB
`; +exports[`renders ./components/input/demo/presuffix.vue correctly 1`] = `


RMB
`; exports[`renders ./components/input/demo/search-input.vue correctly 1`] = `
-
+
-
+
-
+
-
+
`; -exports[`renders ./components/input/demo/search-input-loading.vue correctly 1`] = `


`; +exports[`renders ./components/input/demo/search-input-loading.vue correctly 1`] = `


`; exports[`renders ./components/input/demo/show-count.vue correctly 1`] = ` -10 / 20 +10 / 20

`; -exports[`renders ./components/input/demo/size.vue correctly 1`] = `
`; +exports[`renders ./components/input/demo/size.vue correctly 1`] = `
`; exports[`renders ./components/input/demo/textarea.vue correctly 1`] = ``; -exports[`renders ./components/input/demo/tooltip.vue correctly 1`] = ``; +exports[`renders ./components/input/demo/tooltip.vue correctly 1`] = ``; diff --git a/components/input/__tests__/__snapshots__/index.test.js.snap b/components/input/__tests__/__snapshots__/index.test.js.snap index 1969d2dbe..ef2d75f54 100644 --- a/components/input/__tests__/__snapshots__/index.test.js.snap +++ b/components/input/__tests__/__snapshots__/index.test.js.snap @@ -1,8 +1,8 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Input should support maxlength 1`] = ``; +exports[`Input should support maxlength 1`] = ``; -exports[`Input.Search should support suffix 1`] = `suffix`; +exports[`Input.Search should support suffix 1`] = `suffix`; exports[`TextArea should support disabled 1`] = ``; diff --git a/components/modal/index.tsx b/components/modal/index.tsx index 3db97da9f..05f20e328 100644 --- a/components/modal/index.tsx +++ b/components/modal/index.tsx @@ -3,7 +3,7 @@ import type { ModalFunc, ModalFuncProps } from './Modal'; import Modal, { destroyFns } from './Modal'; import confirm, { withWarn, withInfo, withSuccess, withError, withConfirm } from './confirm'; -export type { ActionButtonProps } from './ActionButton'; +export type { ActionButtonProps } from '../_util/ActionButton'; export type { ModalProps, ModalFuncProps } from './Modal'; function modalWarn(props: ModalFuncProps) {