Skip to content

Commit

Permalink
test: add test for #971
Browse files Browse the repository at this point in the history
  • Loading branch information
MoustaphaDev committed Mar 1, 2024
1 parent e4178e2 commit 0784dd7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions internal/printer/printer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2323,6 +2323,19 @@ const content = "lol";
</main>`,
},
},
{
name: "#971",
source: `<template>
<a href="https://example.com">{text}</a>.
</template>
<p>This should not be a link</p>`,
want: want{
code: `<template>
${$$maybeRenderHead($$result)}<a href="https://example.com">${text}</a>.
</template>
<p>This should not be a link</p>`,
},
},
{
name: "complex table",
source: `<html lang="en">
Expand Down

0 comments on commit 0784dd7

Please sign in to comment.