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
@@ -97,7 +97,7 @@ function Toast(options = {}) {
...options,
};
if (process.env.NODE_ENV !== 'production' && options.mask) {
if (process.env.NODE_ENV === 'development' && options.mask) {
console.warn(
'[Vant] Toast: "mask" option is deprecated, use "overlay" option instead.'
);