Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit 5083957

Browse files
Added an extra test to show string inline rendering of html elements
1 parent 8c3e6a1 commit 5083957

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

tyrian-tags/shared/src/test/scala/tyrian/HTMLRenderingTests.scala

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,17 @@ class HTMLRenderingTests extends munit.FunSuite {
158158
assertEquals(actual, expected)
159159
}
160160

161+
test("Can render an nbsp html entity (inline)") {
162+
val view: Model => Html[Msg] =
163+
_ => p(s"Hello,${_nbsp_}world!")
164+
165+
val actual =
166+
view(model).render
167+
168+
val expected =
169+
"<p>Hello,&nbsp;world!</p>"
170+
171+
assertEquals(actual, expected)
172+
}
173+
161174
}

0 commit comments

Comments
 (0)