(test-delete path port)Helper which test a delete request occurs with success
Helper which test a delete request occurs with success
(test-get path port expected-entity)(test-get path port transform-result-fn expected-entity)Helper which test a get request occurs with success and return the right object Returns the result of the GET call.
Helper which test a get request occurs with success and return the right object Returns the result of the GET call.
(test-post path port new-entity)(test-post path port new-entity expected)(test-post path port transform-result-fn new-entity expected)Test a successful POST returns the parsed-body. An expected result can be provided.
Test a successful POST returns the parsed-body. An expected result can be provided.
(test-put path port new-entity)(test-put path port new-entity expected)Test a successful PUT returns the parsed-body. An expected result can be provided.
Test a successful PUT returns the parsed-body. An expected result can be provided.
(with-port-fn port-fn http-fn)Helper to compose a fn that knows how to lookup an HTTP port with an HTTP method fn (from above) Example: (def test-get (http-assert-2/with-port-fn get-http-port http-assert-2/test-get))
Helper to compose a fn that knows how to lookup an HTTP port with an HTTP method fn (from above) Example: (def test-get (http-assert-2/with-port-fn get-http-port http-assert-2/test-get))
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |