From e71756050ed024135b786d90105e8c746b340a2f Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Mon, 10 Feb 2025 15:11:40 -0800 Subject: [PATCH] fix unit cases once again --- tests/units/test_app.py | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/tests/units/test_app.py b/tests/units/test_app.py index 16bfa83ae..5d25b09ac 100644 --- a/tests/units/test_app.py +++ b/tests/units/test_app.py @@ -1302,18 +1302,17 @@ def test_app_wrap_compile_theme( lines = "".join(app_js_lines) assert ( "function AppWrap({children}) {" - "const [addEvents, connectErrors] = useContext(EventLoopContext);" - "return (" + ("" if react_strict_mode else "") + "" + "return (" + + ("" if react_strict_mode else "") + + "" "" "" "{children}" "" "" "" - "" + ("" if react_strict_mode else "") + ")" + + ("" if react_strict_mode else "") + + ")" "}" ) in lines @@ -1366,6 +1365,8 @@ def test_app_wrap_priority( ] lines = "".join(app_js_lines) assert ( + "function AppWrap({children}) {" + "return (" + ("" if react_strict_mode else "") + "" '' "" "" @@ -1375,15 +1376,8 @@ def test_app_wrap_priority( "" "" "" - "" "" + ("" if react_strict_mode else "") ) in lines - assert ( - "function AppWrap({children}) {" - "const [addEvents, connectErrors] = useContext(EventLoopContext);" - "return (" + ("" if react_strict_mode else "") + "" - "