Liking cljdoc? Tell your friends :D

reacl2.test-util.beta


get-componentcljs

(get-component tc)

Return the component currently instantiated from the class of the given test utility object. Throws if it is not mounted.

Return the component currently instantiated from the class of the
given test utility object. Throws if it is not mounted.
sourceraw docstring

inject-local-state!cljs

(inject-local-state! tc state)

Sets the local-state of the component currently instantiated from the class of the given test utility object. Returns a changed app-state and actions returned from the class as a result, in form of a reacl/return value. Throws if it is not mounted.

Sets the local-state of the component currently instantiated from
the class of the given test utility object. Returns a changed
app-state and actions returned from the class as a result, in form
of a `reacl/return` value. Throws if it is not mounted.
sourceraw docstring

inspect-local-statecljs

(inspect-local-state tc)

Return the current local-state of the component currently instantiated from the class of the given test utility object. Throws if it is not mounted.

Return the current local-state of the component currently
instantiated from the class of the given test utility object. Throws
if it is not mounted.
sourceraw docstring

is-mounted?cljs

(is-mounted? tc)

Returns if the class tested with the given test utility object is currently mounted.

Returns if the class tested with the given test utility object is currently mounted.
sourceraw docstring

mount!cljs

(mount! tc & args)
source

send-message!cljs

(send-message! tc msg)

Sends the given message to the component currently instantiated from the class of the given test utility object. Returns a changed app-state and actions returned from the class as a result, in form of a reacl/return value. Throws if it is not mounted.

Sends the given message to the component currently instantiated
from the class of the given test utility object. Returns a changed
app-state and actions returned from the class as a result, in form
of a `reacl/return` value. Throws if it is not mounted.
sourceraw docstring

test*cljs

(test* class)
source

test-classcljs

(test-class class)

Returns a utility object to test the given class.

Returns a utility object to test the given class.
sourceraw docstring

test-fncljs

(test-fn f)

Returns a utility object to test the given function or non-app-state class, which should return a dom element or class instance.

Returns a utility object to test the given function or
non-app-state class, which should return a dom element or class
instance.
sourceraw docstring

unmount!cljs

(unmount! tc)

Performs an unmount of component in the given test utility object. Returns a changed app-state and actions returned from the class as a result, in form of a reacl/return value.

Performs an unmount of component in the given test utility
object. Returns a changed app-state and actions returned from the
class as a result, in form of a `reacl/return` value.
sourceraw docstring

update!cljs

(update! tc & args)

Performs an update of the given test utility object to a class instance with the given app-state and arguments. Returns a changed app-state and actions returned from the class as a result, in form of a reacl/return value.

Performs an update of the given test utility object to a class instance
with the given app-state and arguments. Returns a changed app-state
and actions returned from the class as a result, in form of a
`reacl/return` value.
sourceraw docstring

with-component-returncljs

(with-component-return tc f & args)

Do something with the component currently instantiated from the class of the given test utility object, by calling (f comp & args), returning a changed app-state and actions returned from the class as a result, in form of a reacl/return value. Throws if it is not mounted.

Do something with the component currently instantiated from the
class of the given test utility object, by calling `(f comp &
args)`, returning a changed app-state and actions returned from the
class as a result, in form of a `reacl/return` value. Throws if it is
not mounted.
sourceraw docstring

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

× close