test: should not emit deprecation warning in test (#7356)
This commit is contained in:
+1
-1
@@ -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.'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user