Skip to content

Commit

Permalink
chore: fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
tltv committed Apr 2, 2024
1 parent 3e31550 commit c2e4c20
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ public void assertClientRoutesRegistered() {

if (getDriver().getPageSource().contains(
"This detailed message is only shown when running in development mode.")) {
var expectedClientRoutes = List.of("root", "/hilla",
"/hilla/person/:id (requires parameter)",
"/hilla/persons/:id? (supports optional parameter)",
"/hilla/hilla/", "/anotherhilla", "/");
var expectedClientRoutes = List.of("<a href=\"\">&lt;root&gt;</a>",
"<a href=\"/hilla\">/hilla</a>",
"<li>/hilla/person/:id (requires parameter)</li>",
"<li>/hilla/persons/:id? (supports optional parameter)</li>",
"<a href=\"/hilla/hilla/\">/hilla/hilla/</a>",
"<a href=\"/anotherhilla\">/anotherhilla</a>");
for (String route : expectedClientRoutes) {
Assert.assertTrue(
String.format("Expected client route %s is missing",
Expand Down

0 comments on commit c2e4c20

Please sign in to comment.