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:
Felix Rilling
2020-07-08 12:32:42 +02:00
committed by GitHub
parent 9b04ea3324
commit 829b35e426
19 changed files with 27 additions and 27 deletions

View File

@@ -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() {

View File

@@ -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',

View File

@@ -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