Skip to content

Commit 6005520

Browse files
committed
add test case for data- attributes
1 parent 28501f2 commit 6005520

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_utils.py

+6
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,12 @@ def test_html_to_vdom_with_no_parent_node():
205205
),
206206
'<div><div>hello</div><a href="https://example.com">example</a><button/></div>',
207207
),
208+
(
209+
html.div(
210+
{"dataSomething": 1, "dataSomethingElse": 2, "dataisnotdashed": 3}
211+
),
212+
'<div data-something="1" data-something-else="2" dataisnotdashed="3" />',
213+
),
208214
],
209215
)
210216
def test_vdom_to_html(vdom_in, html_out):

0 commit comments

Comments
 (0)