Skip to content

Commit 552b0da

Browse files
re-tarocamc314
authored andcommitted
chore: add escape to test case
1 parent 60aea71 commit 552b0da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/oxc_linter/src/rules/unicorn/prefer_keyboard_event_key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ fn test() {
11621162
}
11631163
});",
11641164
"foo123.addEventListener('click', event => {
1165-
if (event.key === ''') {
1165+
if (event.key === '\\'') {
11661166
}
11671167
});",
11681168
None,

0 commit comments

Comments
 (0)