From 302b810ed7ef9c0c5742847dbd6524cc3cf01855 Mon Sep 17 00:00:00 2001 From: Elijah Date: Wed, 11 Dec 2024 11:49:17 +0000 Subject: [PATCH] fix tests --- tests/units/components/core/test_debounce.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/units/components/core/test_debounce.py b/tests/units/components/core/test_debounce.py index 29d3bcddc..a355b9928 100644 --- a/tests/units/components/core/test_debounce.py +++ b/tests/units/components/core/test_debounce.py @@ -60,7 +60,9 @@ def test_render_child_props(): assert "css" in tag.props and isinstance(tag.props["css"], rx.vars.Var) for prop in ["foo", "bar", "baz", "quuc"]: assert prop in str(tag.props["css"]) - assert tag.props["value"].equals(LiteralVar.create("real")) + assert tag.props["value"].equals( + rx.cond(real_var := LiteralVar.create("real"), real_var, "") + ) assert len(tag.props["onChange"].events) == 1 assert tag.props["onChange"].events[0].handler == S.on_change assert tag.contents == ""