添加单元测试 (#12)

* 添加单元测试
This commit is contained in:
张敏
2017-04-25 19:57:17 +08:00
committed by GitHub
parent 1de88fb939
commit dd5e2eefa9
4 changed files with 38 additions and 4 deletions

View File

@@ -37,6 +37,7 @@ import SwipeItem from '../packages/swipe-item/index.js';
import DatetimePicker from '../packages/datetime-picker/index.js';
const install = function(Vue) {
/* istanbul ignore if */
if (install.installed) return;
Vue.component(Button.name, Button);
@@ -73,7 +74,7 @@ const install = function(Vue) {
Vue.component(DatetimePicker.name, DatetimePicker);
};
// auto install
/* istanbul ignore if */
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue);
}