Skip to content

Commit 6889b61

Browse files
gajechrisvfritz
authored andcommitted
Update unit-testing.md (#430)
Fixed reference to function argument in helper function
1 parent d1c09b5 commit 6889b61

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)