Skip to content

Commit

Permalink
Add #33 test
Browse files Browse the repository at this point in the history
  • Loading branch information
dy committed Jul 13, 2024
1 parent aba78ca commit b9f98ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,9 @@ test("style: camel kebab", async () => {
params.style.backgroundColor = 'green'
is(el.outerHTML, `<x style="background-color: green;"></x>`);
});

test('style: #33', async () => {
let el = h`<header class="navbar" :style="{ color: 'white', backgroundColor: '#df0000' }" />`
sprae(el)
is(el.outerHTML, `<header class="navbar" style="color: white; background-color: rgb(223, 0, 0);"></header>`)
})

0 comments on commit b9f98ac

Please sign in to comment.