    (if-cljs
     ;; We must be careful here to call the function version in CLJS
     ;; (otherwise, it expands to clojure.test/is and not cljs.test/is)
-     (monad/return (is (empty? rmocks) "Did not see expected mocked commands."))
-     (m-is (empty? rmocks) "Did not see expected mocked commands."))
+     (monad/return (cljs.test/is (empty? rmocks) "Did not see expected mocked commands."))
+     (monad/return (clojure.test/is (empty? rmocks) "Did not see expected mocked commands.")))
     (monad/return nil)))
 
 (defn mock-effect


;; clojure-check assertions as a monadic command:
;; NOTE Don't use this in CLJS
(defmacro m-is [& forms]
  `(monad/return (is ~@forms)))

(def check-mocks-empty
  (monad/monadic
   [mocks (monad/get-state-component ::mocks)]

  ([mocks m]
   (mock-execute-monad (monad/null-monad-command-config {} {}) mocks m))
  ([command-config mocks m]
   (monad/run-free-reader-state-exception
    (monad/combine-monad-command-configs command-config
                                         (mock-commands mocks))
    (monad/monadic
     [res m]
     ;; check that mock stack is empty at 'end'
     check-mocks-empty
     (monad/return res)))))

;; FIXME This should be renamed to `mock-execute-monad`
(defn mock-run-monad
