This commit is contained in:
Hamcha 2025-01-26 13:26:44 +01:00
parent f6b35d05e7
commit 2332d6bc80
Signed by: hamcha
GPG key ID: 1669C533B8CF6D89

View file

@ -179,12 +179,10 @@ mod tests {
}) })
}) })
}); });
server_context().insert(SiteServiceProvider::with(mock_service)); server_context().insert(SiteServiceProvider::with(mock_service));
app.rebuild_in_place(); app.rebuild_in_place();
let elem_str = dioxus::ssr::render(&app); let elem_str = dioxus::ssr::render(&app);
println!("elem_str: {elem_str}");
assert!(elem_str.contains("Hello, world!")); assert!(elem_str.contains("Hello, world!"));
assert!(elem_str.contains("Something else!")); assert!(elem_str.contains("Something else!"));
} }