8000 fix(linter): misplaced quote in anchor-is-valid test case (#11545) · oxc-project/oxc@a833ed1 · GitHub
[go: up one dir, main page]

Skip to content

Commit a833ed1

Browse files
committed
fix(linter): misplaced quote in anchor-is-valid test case (#11545)
1 parent 4e53b80 commit a833ed1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

crates/oxc_linter/src/rules/jsx_a11y/anchor_is_valid.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ fn test() {
562562
(r"<a />", None, None),
563563
(r"<a href={undefined} />", None, None),
564564
(r"<a href={null} />", None, None),
565-
(r"<a href=' />;", None, None),
565+
(r"<a href='' />;", None, None),
566566
(r"<a href='#' />", None, None),
567567
(r"<a href={'#'} />", None, None),
568568
(r"<a href={`#`} />", None, None),

crates/oxc_linter/src/snapshots/jsx_a11y_anchor_is_valid.snap

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ source: crates/oxc_linter/src/tester.rs
2222
╰────
2323
help: Provide a correct `href` for the `a` element.
2424

25-
× Unterminated string
26-
╭─[anchor_is_valid.tsx:1:9]
27-
1<a href=' />;
28-
· ────
25+
eslint-plugin-jsx-a11y(anchor-is-valid): Use of incorrect `href` for the 'a' element.
26+
╭─[anchor_is_valid.tsx:1:2]
27+
1<a href='' />;
28+
· ─
2929
╰────
30+
help: Provide a correct `href` for the `a` element.
3031

3132
eslint-plugin-jsx-a11y(anchor-is-valid): Use of incorrect `href` for the 'a' element.
3233
╭─[anchor_is_valid.tsx:1:2]

0 commit comments

Comments
 (0)
0