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
@@ -74,7 +74,7 @@ export default createComponent({
const iconSlot = this.slots('icon');
const info = this.badge ?? this.info;
if (process.env.NODE_ENV !== 'production' && this.info) {
if (process.env.NODE_ENV === 'development' && this.info) {
console.warn(
'[Vant] GridItem: "info" prop is deprecated, use "badge" prop instead.'
);