Skip to content

Commit 050321a

Browse files
committed
simplify test
1 parent 1d9fb69 commit 050321a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def sample():
8282
route("/a", link("A", to="/b", id="a")),
8383
route("/b", link("B", to="/c", id="b")),
8484
route("/c", link("C", to="/default", id="c")),
85-
route("/{path:path}", html.h1({"id": "default"}, "Default")),
85+
route("*", html.h1({"id": "default"}, "Default")),
8686
)
8787

8888
await display.show(sample)
@@ -161,7 +161,7 @@ def sample():
161161
route("/a", link("A", to="/b", id="a")),
162162
route("/b", link("B", to="/c", id="b")),
163163
route("/c", link("C", to="/default", id="c")),
164-
route("/{path:path}", html.h1({"id": "default"}, "Default")),
164+
route("*", html.h1({"id": "default"}, "Default")),
165165
)
166166

167167
await display.show(sample)

0 commit comments

Comments
 (0)