I will use a built-in clojure.test/cljs.test framework in this documentation. To learn how to use it:
project.clj
(the framework is hosted on Clojars)::dependencies [...
[clj-fakes "0.12.0"]]
(ns unit.example
(:require
[clojure.test :refer [is deftest]]
[clj-fakes.core :as f]))
(deftest fakes-work
(f/with-fakes
(let [hello (f/fake [[] "hello, world"])]
(is (= "hello, world" (hello))))))
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close