Skip to content

Commit

Permalink
test: add some more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vehmloewff committed Aug 4, 2022
1 parent c55435f commit 54dae48
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
17 changes: 17 additions & 0 deletions compiler/attribute.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,20 @@ Deno.test({
})
},
})

Deno.test({
name: '[attribute] newlines should work',
fn() {
test(
`"
Hi there!
"/> this and that`,
{
length: 20,
jsString: `\`
Hi there!
\``,
}
)
},
})
10 changes: 8 additions & 2 deletions compiler/wrap.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ Deno.test({
{#if imagePath}
<div
class="mx-auto w-200 h-200 rounded-full border-2 boder-red bg-center bg-cover bg-no-repeat"
class="
mx-auto w-200 h-200 rounded-full border-2
border-red bg-center bg-cover bg-no-repeat
"
style="background-image: url('{imagePath}')"
/>
Expand Down Expand Up @@ -66,7 +69,10 @@ Deno.test({
{#if imagePath}
<div
class={someFn(\`mx-auto w-200 h-200 rounded-full border-2 boder-red bg-center bg-cover bg-no-repeat\`)}
class={someFn(\`
mx-auto w-200 h-200 rounded-full border-2
border-red bg-center bg-cover bg-no-repeat
\`)}
style="background-image: url('{imagePath}')"
/>
Expand Down

0 comments on commit 54dae48

Please sign in to comment.