From b2c7c53b4cabb87f00e3ef3caa2a1a94a5004987 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 27 Dec 2018 11:46:22 +0800 Subject: [PATCH] :white_check_mark: fix warning in test case --- components/drawer/index.tsx | 1 + components/form/FormItem.tsx | 2 +- .../input/__tests__/__snapshots__/index.test.js.snap | 8 ++++---- components/input/__tests__/index.test.js | 4 ++-- components/input/demo/tooltip.md | 2 +- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/components/drawer/index.tsx b/components/drawer/index.tsx index 79d7117bae..e3aded4a62 100644 --- a/components/drawer/index.tsx +++ b/components/drawer/index.tsx @@ -49,6 +49,7 @@ export default class Drawer extends React.Component { PropTypes.string, PropTypes.object as PropTypes.Requireable, PropTypes.func, + PropTypes.bool, ]), maskClosable: PropTypes.bool, mask: PropTypes.bool, diff --git a/components/form/FormItem.tsx b/components/form/FormItem.tsx index a3a6520388..0b40994e39 100644 --- a/components/form/FormItem.tsx +++ b/components/form/FormItem.tsx @@ -11,7 +11,7 @@ import { FIELD_META_PROP, FIELD_DATA_PROP } from './constants'; import Icon from '../icon'; import { tuple } from '../_util/type'; -const ValidateStatuses = tuple('success', 'warning', 'error', 'validating'); +const ValidateStatuses = tuple('success', 'warning', 'error', 'validating', ''); export interface FormItemProps { prefixCls?: string; diff --git a/components/input/__tests__/__snapshots__/index.test.js.snap b/components/input/__tests__/__snapshots__/index.test.js.snap index d1cab3443d..dccb24e464 100644 --- a/components/input/__tests__/__snapshots__/index.test.js.snap +++ b/components/input/__tests__/__snapshots__/index.test.js.snap @@ -3,14 +3,14 @@ exports[`Input should support maxLength 1`] = ` @@ -110,12 +110,12 @@ exports[`TextArea should support disabled 1`] = ` exports[`TextArea should support maxLength 1`] = `