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 "") + ""
- "