Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Feb 9, 2024
1 parent 6f87045 commit 0411103
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/babashka/http_client_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
(json/parse-string true)
:code)))
(testing "query params"
(is (= {:foo1 "bar1" :foo2 "bar2" :foo3 "bar3" :not-string "42" :namespaced/key "foo"}
(is (= {:foo1 "bar1", :foo2 "bar2", :foo3 "bar3", :not-string "42", :namespaced%2Fkey "foo"}
(-> (http/get "https://postman-echo.com/get" {:query-params {"foo1" "bar1" "foo2" "bar2" :foo3 "bar3" :not-string 42 :namespaced/key "foo"}})
:body
(json/parse-string true)
Expand Down Expand Up @@ -218,7 +218,7 @@
:code))))

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

0 comments on commit 0411103

Please sign in to comment.