fix ssr tests

This commit is contained in:
Evan Almloff committed 2024-01-15 11:12:24 -06:00
1 parent b039d6acc0
commit 16d5d00bdf
8 files changed
+36 -32

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ use dioxus::prelude::*;
#[test]
fn static_inner_html() {
fn app(_: ()) -> Element {
fn app() -> Element {
render! { div { dangerous_inner_html: "<div>1234</div>" } }
}
@@ -14,7 +14,7 @@ fn static_inner_html() {
#[test]
fn dynamic_inner_html() {
fn app(_: ()) -> Element {
fn app() -> Element {
let inner_html = "<div>1234</div>";
render! { div { dangerous_inner_html: "{inner_html}" } }
}