restore core tests

This commit is contained in:
Evan Almloff committed 2024-01-16 15:51:02 -06:00
1 parent b58eb04278
commit ad01a45f3b
9 files changed
+19 -11

No files matched your search

+2 -2
View File
@@ -42,7 +42,7 @@ fn contexts_drop() {
}
fn ChildComp() -> Element {
let el = consume_context::<String>().unwrap();
let el = consume_context::<String>();
rsx! { div { "hello {el}" } }
}
@@ -77,7 +77,7 @@ fn root_props_drop() {
struct RootProps(String);
let mut dom = VirtualDom::new_with_props(
|cx| rsx!( div { "{cx.0}" } ),
|cx: RootProps| rsx!( div { "{cx.0}" } ),
RootProps("asdasd".to_string()),
);