mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
Merge pull request #512 from miikka/add-extra-test
Add a test for `/{foo}.html` style routes
This commit is contained in:
commit
d0f1abe115
1 changed files with 1 additions and 0 deletions
|
|
@ -121,6 +121,7 @@
|
|||
:foo/bar "ei/toista/kertaa"}]
|
||||
(by-path "/olipa/kerran/avaruus/vaan/ei/toista/kertaa")))
|
||||
(is (= [::html {:name "10"}] (by-path "/files/file-10.html")))
|
||||
(is (= [nil nil] (by-path "/files/file-..html")))
|
||||
(is (= [::loru {:eskon "viitan", :saum "aa"}] (by-path "/viitan/aa/pium\u2215paum")))
|
||||
(is (= [nil nil] (by-path "/ei/osu/pium/paum")))
|
||||
(is (= [::emoji {:🌈 "brackets"}] (by-path "/brackets🤔/🎈")))
|
||||
|
|
|
|||
Loading…
Reference in a new issue