Liking cljdoc? Tell your friends :D

noir.util.test

A set of utilities for testing a Noir project

A set of utilities for testing a Noir project
raw docstring

content-typesclj

source

has-bodyclj

(has-body resp cont)

Asserts that the response has the given body

Asserts that the response has the given body
sourceraw docstring

has-content-typeclj

(has-content-type resp ct)

Asserts that the response has the given content type

Asserts that the response has the given content type
sourceraw docstring

has-statusclj

(has-status resp stat)

Asserts that the response has the given status

Asserts that the response has the given status
sourceraw docstring

(print-state & details?)

Print the state of the noir server's routes/middleware/wrappers. If optional details? arg is truthy, show noir-routes, route-funcs, and status pages too.

Print the state of the noir server's routes/middleware/wrappers.
If optional details? arg is truthy, show noir-routes, route-funcs,
and status pages too.
sourceraw docstring

send-requestclj

(send-request route & [params])

Send a request to the Noir handler. Unlike with-noir, this will run the request within the context of all middleware.

Send a request to the Noir handler. Unlike with-noir, this will run
the request within the context of all middleware.
sourceraw docstring

send-request-mapclj

(send-request-map ring-req)

Send a ring-request map to the noir handler.

Send a ring-request map to the noir handler.
sourceraw docstring

with-noircljmacro

(with-noir & body)

Executes the body within the context of Noir's bindings

Executes the body within the context of Noir's bindings
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close