chore(ssr): update askama_escape dependency (#4215)
This commit is contained in:
1 parent
77d10a40e3
commit
3a5b68e56d
5 files changed
+15
-15
No files matched your search
@@ -11,7 +11,7 @@ fn escape_static_values() {
|
||||
|
||||
assert_eq!(
|
||||
dioxus_ssr::pre_render(&dom),
|
||||
"<input disabled=\""><div>\" data-node-hydration=\"0\"/>"
|
||||
"<input disabled=\""><div>\" data-node-hydration=\"0\"/>"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ fn escape_dynamic_values() {
|
||||
|
||||
assert_eq!(
|
||||
dioxus_ssr::pre_render(&dom),
|
||||
"<input disabled=\""><div>\" data-node-hydration=\"0\"/>"
|
||||
"<input disabled=\""><div>\" data-node-hydration=\"0\"/>"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ fn escape_static_style() {
|
||||
|
||||
assert_eq!(
|
||||
dioxus_ssr::pre_render(&dom),
|
||||
"<div style=\"width:"><div>;\" data-node-hydration=\"0\"></div>"
|
||||
"<div style=\"width:"><div>;\" data-node-hydration=\"0\"></div>"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ fn escape_dynamic_style() {
|
||||
|
||||
assert_eq!(
|
||||
dioxus_ssr::pre_render(&dom),
|
||||
"<div style=\"width:"><div>;\" data-node-hydration=\"0\"></div>"
|
||||
"<div style=\"width:"><div>;\" data-node-hydration=\"0\"></div>"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ fn escape_static_text() {
|
||||
|
||||
assert_eq!(
|
||||
dioxus_ssr::pre_render(&dom),
|
||||
"<div data-node-hydration=\"0\">"><div></div>"
|
||||
"<div data-node-hydration=\"0\">"><div></div>"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ fn escape_dynamic_text() {
|
||||
|
||||
assert_eq!(
|
||||
dioxus_ssr::pre_render(&dom),
|
||||
"<div data-node-hydration=\"0\"><!--node-id1-->"><div><!--#--></div>"
|
||||
"<div data-node-hydration=\"0\"><!--node-id1-->"><div><!--#--></div>"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ fn escape_static_component_fragment_div() {
|
||||
|
||||
assert_eq!(
|
||||
dioxus_ssr::pre_render(&dom),
|
||||
"<div data-node-hydration=\"0\"><!--node-id1-->body { font-family: "sans-serif"; }<!--#--></div>"
|
||||
"<div data-node-hydration=\"0\"><!--node-id1-->body { font-family: "sans-serif"; }<!--#--></div>"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -244,6 +244,6 @@ fn escape_dynamic_component_fragment_div() {
|
||||
|
||||
assert_eq!(
|
||||
dioxus_ssr::pre_render(&dom),
|
||||
"<div data-node-hydration=\"0\"><!--node-id1-->body { font-family: "sans-serif"; }<!--#--></div>"
|
||||
"<div data-node-hydration=\"0\"><!--node-id1-->body { font-family: "sans-serif"; }<!--#--></div>"
|
||||
);
|
||||
}
|
||||
@@ -42,7 +42,7 @@ fn dynamic() {
|
||||
dioxus_ssr::render_element(rsx! {
|
||||
div { "Hello world 1 -->" "{dynamic}" "<-- Hello world 2" }
|
||||
}),
|
||||
"<div>Hello world 1 -->123<-- Hello world 2</div>"
|
||||
"<div>Hello world 1 -->123<-- Hello world 2</div>"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user