Added formatCreditCard
This commit is contained in:
parent
9e9d2d6885
commit
625c211b62
10 changed files with 168 additions and 34 deletions
|
@ -100,16 +100,4 @@ class TestEncode {
|
|||
t.setAttribute(TestCase.FOO, "a test &");
|
||||
assertThat(t.getContent()).isEqualTo("<test>\n <foo>a test &</foo>\n</test>");
|
||||
}
|
||||
|
||||
@Test
|
||||
void testShortenUrl() {
|
||||
var t = TemplateFactory.HTML.get("shortenUrl");
|
||||
var url = "https://example.com/";
|
||||
var shortUrl = "https://is.gd/AG3Hwv";
|
||||
t.setValue(TestCase.FOO, url);
|
||||
assertThat(t.getContent()).isEqualTo(String.format("<a href=\"%s\">%s</a>", shortUrl, url));
|
||||
t.setValue(TestCase.FOO, TestCase.FOO);
|
||||
assertThat(t.getContent()).isEqualTo("<a href=\"foo\">foo</a>");
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue