Skip to content

Commit fe55ce0

Browse files
committed
test: A test for empty style tag
1 parent 1d3d57a commit fe55ce0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_inlining.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,14 @@ fn overloaded_styles() {
6464
expected = r#"<h1 id="test" style="color: blue;">Hello world!</h1>"#
6565
)
6666
}
67+
68+
#[test]
69+
fn empty_style() {
70+
// When the style tag is empty
71+
assert_inlined!(
72+
style = "",
73+
body = r#"<h1>Hello world!</h1>"#,
74+
// Then the body should remain the same
75+
expected = r#"<h1>Hello world!</h1>"#
76+
)
77+
}

0 commit comments

Comments
 (0)