diff --git a/test/unit/util.js b/test/unit/util.js index 51fd6293f..10511905e 100644 --- a/test/unit/util.js +++ b/test/unit/util.js @@ -31,12 +31,10 @@ exports.destroyVM = function(vm) { * @return {Object} vm */ exports.createVue = function(Compo, mounted = false) { - const elm = createElm(); - if (Object.prototype.toString.call(Compo) === '[object String]') { Compo = { template: Compo }; } - return new Vue(Compo).$mount(mounted === false ? null : elm); + return new Vue(Compo).$mount(mounted === false ? null : createElm()); }; /**