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
@@ -30,7 +30,7 @@ function SwitchCell(
slots: DefaultSlots,
ctx: RenderContext<SwitchCellProps>
) {
if (process.env.NODE_ENV !== 'production') {
if (process.env.NODE_ENV === 'development') {
console.warn(
'[Vant] "SwitchCell" component is deprecated, see: https://youzan.github.io/vant/#/zh-CN/switch-cell.'
);