Skip to content

Commit 5c7ffa0

Browse files
committed
chore(template-mouse-events-have-key-events): clarify mouseenter test comment (Copilot review)
Reword the 'Hover-in paired with focus' test comment to reflect that mouseover is the only default hover-in handler. The mouseenter case passes regardless of focusin because it isn't in the default token set — it exists as a no-crash smoke test for non-default tokens.
1 parent 1e63f33 commit 5c7ffa0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/lib/rules/template-mouse-events-have-key-events.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ ruleTester.run('template-mouse-events-have-key-events', rule, {
1414
'<template><div></div></template>',
1515
'<template><div {{on "click" this.onClick}}></div></template>',
1616

17-
// Hover-in paired with focus.
17+
// Hover-in paired with focus. mouseover is the only default hover-in
18+
// handler; the mouseenter case below is a non-default token and passes
19+
// regardless of focusin because it isn't checked by default — the case
20+
// exists to confirm no crash when the token falls outside defaults.
1821
'<template><div {{on "mouseover" this.onHover}} {{on "focus" this.onHover}}></div></template>',
1922
'<template><div {{on "mouseenter" this.onHover}} {{on "focusin" this.onHover}}></div></template>',
2023
'<template><div {{on "mouseover" this.onHover}} {{on "focusin" this.onHover}}></div></template>',

0 commit comments

Comments
 (0)