Skip to content

Commit fe18cd4

Browse files
gajechrisvfritz
authored andcommitted
Update unit-testing.md (vuejs#430)
Fixed reference to function argument in helper function
1 parent 32c8d6c commit fe18cd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/unit-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ import MyComponent from './MyComponent.vue'
9393

9494
// helper function that mounts and returns the rendered text
9595
function getRenderedText (Component, propsData) {
96-
const Ctor = Vue.extend(MyComponent)
96+
const Ctor = Vue.extend(Component)
9797
const vm = new Ctor({ propsData }).$mount()
9898
return vm.$el.textContent
9999
}

0 commit comments

Comments
 (0)