Add test cases to check for deep paths

This commit is contained in:
Ilmo Raunio 2019-11-11 23:53:22 +02:00 committed by Tommi Reiman
parent 8a86701902
commit e092001568

View file

@ -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?