Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Feb 10, 2024
1 parent 0210394 commit 1e21b7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/babashka/http_client_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,10 @@
:code))))

(deftest url-encode-query-params-test
(is (= {"my query param?" "hello there"}
(-> (http/get "https://postman-echo.com/get" {:query-params {"my query param?" "hello there"}})
(is (= {"my query param?" "hello there"
"q" "foo & bar"}
(-> (http/get "https://postman-echo.com/get" {:query-params {"my query param?" "hello there"
:q "foo & bar"}})
:body
(json/parse-string)
(get "args")))))
Expand Down

0 comments on commit 1e21b7c

Please sign in to comment.