소스 검색

remove unnecessary declaration

Nicholas Lee 8 년 전
부모
커밋
5234a58e57
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      test/unit/util.js

+ 1 - 3
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());
 };
 
 /**