Liking cljdoc? Tell your friends :D

Extension: Expectations v2-stye API

Adapts the expect assertion and utility functions from Expectations v2. The interface vars (defexpect, expecting, etc) have also been adapted. Due to the differences in Lazytest and clojure.test, test cases must be defined with lazytest.core/it, as expect is merely an assertion.

Because all vars have been adapted, no additional dependencies are required.

See namespace docs for further details.

Example

(ns lazytest.expectations-v2.example-test
  (:require
    [lazytest.core :refer [it]]
    [lazytest.extensions.expectations :refer [defexpect expecting expect]]))

(defexpect example-test
  (expecting "many ways to work"
    (it "is a cool assertion DSL"
      (expect 2 2))))

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close