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:
@@ -88,12 +88,12 @@ describe('runtime-dom: props patching', () => {
|
||||
// anyway, here we just want to make sure Vue doesn't set non-string props
|
||||
// to an empty string on nullish values - it should reset to its default
|
||||
// value.
|
||||
const intiialValue = el.srcObject
|
||||
const initialValue = el.srcObject
|
||||
const fakeObject = {}
|
||||
patchProp(el, 'srcObject', null, fakeObject)
|
||||
expect(el.srcObject).not.toBe(fakeObject)
|
||||
patchProp(el, 'srcObject', null, null)
|
||||
expect(el.srcObject).toBe(intiialValue)
|
||||
expect(el.srcObject).toBe(initialValue)
|
||||
})
|
||||
|
||||
test('catch and warn prop set TypeError', () => {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import { warn } from '@vue/runtime-core'
|
||||
|
||||
// functions. The user is reponsible for using them with only trusted content.
|
||||
// functions. The user is responsible for using them with only trusted content.
|
||||
export function patchDOMProp(
|
||||
el: any,
|
||||
key: string,
|
||||
|
||||
Reference in New Issue
Block a user