chore: typo fixes (#1546)
* chore: fix typos in comments/JSDoc. * chore: fix typo in internal function name. * chore: fix typos in test comments/descriptions/variable names.
This commit is contained in:
@@ -26,13 +26,13 @@ describe('component: emit', () => {
|
||||
render(h(Comp), nodeOps.createElement('div'))
|
||||
|
||||
expect(onfoo).not.toHaveBeenCalled()
|
||||
// only capitalized or special chars are considerd event listeners
|
||||
// only capitalized or special chars are considered event listeners
|
||||
expect(onBar).toHaveBeenCalled()
|
||||
expect(onBaz).toHaveBeenCalled()
|
||||
})
|
||||
|
||||
// for v-model:foo-bar usage in DOM templates
|
||||
test('trigger hyphendated events for update:xxx events', () => {
|
||||
test('trigger hyphenated events for update:xxx events', () => {
|
||||
const Foo = defineComponent({
|
||||
render() {},
|
||||
created() {
|
||||
|
||||
@@ -45,10 +45,10 @@ describe('scopeId runtime support', () => {
|
||||
return h('div', this.$slots.default())
|
||||
})
|
||||
}
|
||||
const withChil2Id = withScopeId('child2')
|
||||
const withChild2Id = withScopeId('child2')
|
||||
const Child2 = {
|
||||
__scopeId: 'child2',
|
||||
render: withChil2Id(() => h('span'))
|
||||
render: withChild2Id(() => h('span'))
|
||||
}
|
||||
const App = {
|
||||
__scopeId: 'parent',
|
||||
|
||||
@@ -254,7 +254,7 @@ describe('vnode', () => {
|
||||
|
||||
// cloning with new ref, but with same context instance
|
||||
const cloned5 = cloneVNode(original, { ref: 'bar' })
|
||||
// new ref should use current context instance and overwrite orgiinal
|
||||
// new ref should use current context instance and overwrite original
|
||||
expect(cloned5.ref).toEqual([mockInstance2, 'bar'])
|
||||
|
||||
// cloning and adding ref to original that has no ref
|
||||
|
||||
Reference in New Issue
Block a user