Skip to content

Commit 3e42559

Browse files
committed
test: fix script
1 parent 69e4514 commit 3e42559

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

packages/frender/tests/script.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,6 @@ fn script_empty() {
1313
);
1414
}
1515

16-
#[test]
17-
fn script_option_empty() {
18-
assert_eq!(
19-
block_on(rsx!(<script>{None::<Empty>}</script>).render_to_string()),
20-
"<script></script>"
21-
);
22-
assert_eq!(
23-
block_on(rsx!(<script>{Some(Empty)}</script>).render_to_string()),
24-
"<script></script>"
25-
);
26-
}
27-
2816
#[test]
2917
fn script_danger() {
3018
use frender::ScriptInnerTextWronglyEncoded;
@@ -42,7 +30,7 @@ fn script_danger() {
4230
assert_eq!(
4331
block_on(
4432
cs::script()
45-
.children(Some(ScriptInnerTextWronglyEncoded("1</script/")))
33+
.children(ScriptInnerTextWronglyEncoded("1</script/"))
4634
.render_to_string()
4735
),
4836
"<script>1</script/</script>"

0 commit comments

Comments
 (0)