添加单元测试 (#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

@@ -11,12 +11,13 @@ var ISNTALL_COMPONENT_TEMPLATE = ' Vue.component({{name}}.name, {{name}});';
var MAIN_TEMPLATE = `{{include}}
const install = function(Vue) {
/* istanbul ignore if */
if (install.installed) return;
{{install}}
};
// auto install
/* istanbul ignore if */
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue);
}