From 04111038c88d77f7ca665687a46286d3d3f16683 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Fri, 9 Feb 2024 19:51:34 +0100 Subject: [PATCH] tests --- test/babashka/http_client_test.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/babashka/http_client_test.clj b/test/babashka/http_client_test.clj index 5ef5fe1..a053ce3 100644 --- a/test/babashka/http_client_test.clj +++ b/test/babashka/http_client_test.clj @@ -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) @@ -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)