DatetimePicker: improve test coverage

This commit is contained in:
陈嘉涵
2017-08-26 09:10:38 +08:00
parent e7b1d70900
commit 956f7f4cdf
4 changed files with 116 additions and 14 deletions

View File

@@ -1,5 +1,8 @@
require('packages/vant-css/src/index.css');
// hack for test touch event
window.ontouchstart = {};
// 读取配置文件,判断运行单个测试文件还是所有测试文件
const testsReq = require.context('./specs', true, /\.spec$/);
if (process.env.TEST_FILE) {