Skip to content

Commit d80dcfa

Browse files
committed
remove test cases for bind expressions (e.g. foo::bar) that are supported in babel
1 parent 0c56fca commit d80dcfa

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

crates/oxc_linter/src/rules/react/jsx_handler_names.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -437,22 +437,6 @@ fn test() {
437437
serde_json::json!([{ "eventHandlerPrefix": "on", "eventHandlerPropPrefix": "on" }]),
438438
),
439439
),
440-
// These test cases are commented out because "::" is not understood by the parser.
441-
// ("<TestComponent onChange={props::handleChange} />", None),
442-
// ("<TestComponent onChange={::props.onChange} />", None),
443-
// ("<TestComponent onChange={props.foo::handleChange} />", None),
444-
// (
445-
// "<TestComponent onChange={() => props::handleChange()} />",
446-
// Some(serde_json::json!([{ "checkInlineFunction": true }])),
447-
// ),
448-
// (
449-
// "<TestComponent onChange={() => ::props.onChange()} />",
450-
// Some(serde_json::json!([{ "checkInlineFunction": true }])),
451-
// ),
452-
// (
453-
// "<TestComponent onChange={() => props.foo::handleChange()} />",
454-
// Some(serde_json::json!([{ "checkInlineFunction": true }])),
455-
// ),
456440
("<TestComponent only={this.only} />", None),
457441
(
458442
"<TestComponent onChange={this.someChange} />",

0 commit comments

Comments
 (0)