Added Normalize renderer
This commit is contained in:
parent
0ab3e93caa
commit
c5cbff291f
7 changed files with 97 additions and 12 deletions
|
@ -93,4 +93,13 @@ class TestEncode {
|
|||
t.setAttribute(TestCase.FOO, "a test &");
|
||||
assertThat(t.getContent()).isEqualTo("<test>\n <foo>a test &</foo>\n</test>");
|
||||
}
|
||||
|
||||
@Test
|
||||
void testNormalize() {
|
||||
var t = TemplateFactory.HTML.get("normalize");
|
||||
var foo = "News for January 6, 2023 (Paris)";
|
||||
t.setValue(TestCase.FOO, foo);
|
||||
assertThat(t.getContent()).isEqualTo("<a href=\"https://example.com/news/news-for-january-6-2023-paris\">"
|
||||
+ foo + "</a>");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue