Kaynağa Gözat

small coverage tweaks

Evan You 10 yıl önce
ebeveyn
işleme
4179ba0b1c

+ 1 - 3
src/core/vdom/create-component.js

@@ -127,9 +127,7 @@ function resolveAsyncComponent (
   factory: Function,
   cb: Function
 ): Class<Component> | void {
-  if (factory.resolved) {
-    return factory.resolved
-  } else if (factory.requested) {
+  if (factory.requested) {
     // pool callbacks
     factory.pendingCallbacks.push(cb)
   } else {

+ 1 - 1
test/unit/features/options/render.spec.js

@@ -7,7 +7,7 @@ describe('Options render', () => {
         const h = this.$createElement
         const children = []
         for (let i = 0; i < this.items.length; i++) {
-          children.push(h('li', { staticClass: 'task' }, [this.items[i].name]))
+          children.push(h('li', { staticClass: 'task' }, this.items[i].name /* string as children*/))
         }
         return h('ul', { staticClass: 'tasks' }, children)
       },