test: should not emit deprecation warning in test (#7356)

This commit is contained in:
neverland
2020-10-18 19:54:39 +08:00
committed by GitHub
parent 1b97315b54
commit 22888a7e97
20 changed files with 50 additions and 78 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ function Icon(
const name = correctName(props.name);
const imageIcon = isImage(name);
if (process.env.NODE_ENV !== 'production' && props.info) {
if (process.env.NODE_ENV === 'development' && props.info) {
console.warn(
'[Vant] Icon: "info" prop is deprecated, use "badge" prop instead.'
);