make all core tests compile

This commit is contained in:
Evan Almloff committed 2024-01-11 15:18:11 -06:00
1 parent a9d09d858b
commit fd0a53ab63
21 files changed
+123 -148

No files matched your search

+2 -2
View File
@@ -4,7 +4,7 @@ use dioxus::prelude::*;
#[test]
fn state_shares() {
fn app() -> Element {
cx.provide_context(generation() as i32);
provide_context(generation() as i32);
render!(child_1 {})
}
@@ -14,7 +14,7 @@ fn state_shares() {
}
fn child_2() -> Element {
let value = cx.consume_context::<i32>().unwrap();
let value = consume_context::<i32>().unwrap();
render!("Value is {value}")
}