[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2024-10-16 07:34:31 +00:00 committed by GitHub
parent cb2bdc2650
commit ef2229cdb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -476,7 +476,7 @@ describe('vnode', () => {
let props4: Data = { onNaming: 0 } let props4: Data = { onNaming: 0 }
mergeProps(props1, props4) mergeProps(props1, props4)
expect( expect(
`Prop with prefix 'on' is considered an event handler, avoid such naming if it is not. prop: onNaming.` `Prop with prefix 'on' is considered an event handler, avoid such naming if it is not. prop: onNaming.`,
).toHaveBeenWarned() ).toHaveBeenWarned()
}) })

View File

@ -890,7 +890,7 @@ export function mergeProps(...args: (Data & VNodeProps)[]): Data {
) )
) { ) {
warn( warn(
`Prop with prefix 'on' is considered an event handler, avoid such naming if it is not. prop: ${key}.` `Prop with prefix 'on' is considered an event handler, avoid such naming if it is not. prop: ${key}.`,
) )
} }