We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a42bc2 commit 34916ebCopy full SHA for 34916eb
test/ring/middleware/apigw_test.clj
@@ -20,6 +20,7 @@
20
(GET "/get" request {:status 200 :body "get"})
21
(OPTIONS "/options" request {:status 200 :body "options"})
22
(POST "/post" request {:status 200 :body "post"})
23
+ (PATCH "/patch" request {:status 200 :body "patch"})
24
(PUT "/put" request {:status 200 :body "put"})
25
(DELETE "/delete" request {:status 200 :body "delete"})
26
(route/not-found {:status 404 :body {:errors "Route not found"}}))
@@ -88,6 +89,10 @@
88
89
(is (= {:statusCode 200 :headers {} :body "post"}
90
(app (->apigw-request "POST" "/post")))))
91
92
+ (testing "PATCH"
93
+ (is (= {:statusCode 200 :headers {} :body "patch"}
94
+ (app (->apigw-request "PATCH" "/patch")))))
95
+
96
(testing "PUT"
97
(is (= {:statusCode 200 :headers {} :body "put"}
98
(app (->apigw-request "PUT" "/put")))))
0 commit comments