Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue-41925 fix: add test to verify fix for handling duplicate props
- Loading branch information
Ishaq Ibrahim
committed
Oct 30, 2022
1 parent
aa2e7df
commit 3f62800
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
packages/next-codemod/transforms/__testfixtures__/new-link/handle-duplicate-props.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Link from 'next/link' | ||
|
||
export default function Page() { | ||
return ( | ||
<Link href="/about"> | ||
<a href="/about" className="some-class">Link</a> | ||
</Link> | ||
); | ||
} |
9 changes: 9 additions & 0 deletions
9
packages/next-codemod/transforms/__testfixtures__/new-link/handle-duplicate-props.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Link from 'next/link' | ||
|
||
export default function Page() { | ||
return ( | ||
<Link href="/about" className="some-class"> | ||
Link | ||
</Link> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters