Skip to content

Commit

Permalink
test: add test for #958
Browse files Browse the repository at this point in the history
  • Loading branch information
MoustaphaDev committed Mar 1, 2024
1 parent 34dddcd commit 3d2f263
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions internal/printer/printer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2304,6 +2304,25 @@ const content = "lol";
</html>`,
},
},
{
name: "#958",
source: `<main>
<table>
<tr>
<td><a href={linkURL}>{linkURL}</a></td>
</tr>
</table>
</main>`,
want: want{
code: `${$$maybeRenderHead($$result)}<main>
<table>
<tr>
<td><a${$$addAttribute(linkURL, "href")}>${linkURL}</a></td>
</tr>
</table>
</main>`,
},
},
{
name: "complex table",
source: `<html lang="en">
Expand Down

0 comments on commit 3d2f263

Please sign in to comment.