blob: a0d5aea4f668cf1183f5082545bb12ef43a79c82 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
(use ../../../jurl)
(import spork/json)
(def body {:abc "xyz"
:foo "bar"})
(def req (->> "https://pie.dev/post"
(http :post)
(json body)))
(def res (req))
(assert (= 200 (res :status)))
(def jes (freeze ((json/decode (res :body) true) :json)))
(assert (= body jes))
|