mirror of
https://github.com/metosin/reitit.git
synced 2025-12-23 10:41:10 +00:00
Add test cases to check for deep paths
This commit is contained in:
parent
8a86701902
commit
e092001568
1 changed files with 13 additions and 1 deletions
|
|
@ -347,7 +347,19 @@
|
||||||
[["/a" {:conflicting true}]
|
[["/a" {:conflicting true}]
|
||||||
["/:b" {:conflicting true}]
|
["/:b" {:conflicting true}]
|
||||||
["/c" {:conflicting true}]
|
["/c" {:conflicting true}]
|
||||||
["/*d" {:conflicting true}]] :quarantine-router)
|
["/*d" {:conflicting true}]] :quarantine-router
|
||||||
|
[["/:a"
|
||||||
|
["/:b" {:conflicting true}]
|
||||||
|
["/:c" {:conflicting true}]
|
||||||
|
["/:d"
|
||||||
|
["/:e" {:conflicting true}]
|
||||||
|
["/:f" {:conflicting true}]]]] :quarantine-router
|
||||||
|
[["/:a" {:conflicting true}
|
||||||
|
["/:b"]
|
||||||
|
["/:c"]
|
||||||
|
["/:d"
|
||||||
|
["/:e"]
|
||||||
|
["/:f"]]]] :quarantine-router)
|
||||||
(testing "unmarked path conflicts throw"
|
(testing "unmarked path conflicts throw"
|
||||||
(are [paths]
|
(are [paths]
|
||||||
(is (thrown-with-msg?
|
(is (thrown-with-msg?
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue