Skip to content

Commit

Permalink
add test case for data- attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed Nov 22, 2022
1 parent 28501f2 commit 6005520
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ def test_html_to_vdom_with_no_parent_node():
),
'<div><div>hello</div><a href="https://example.com">example</a><button/></div>',
),
(
html.div(
{"dataSomething": 1, "dataSomethingElse": 2, "dataisnotdashed": 3}
),
'<div data-something="1" data-something-else="2" dataisnotdashed="3" />',
),
],
)
def test_vdom_to_html(vdom_in, html_out):
Expand Down

0 comments on commit 6005520

Please sign in to comment.