cemerick / clojurescript.test

A maximal port of `clojure.test` to ClojureScript. DEPRECATED
165 stars 32 forks source link

Unable to evaluate test source in LightTable #63

Closed myguidingstar-zz closed 10 years ago

myguidingstar-zz commented 10 years ago

I have this cljs source file:

(ns todomvc.transact-test
  (:require-macros [cemerick.cljs.test
                    :refer (is deftest with-test run-tests testing test-var)])
  (:require [cemerick.cljs.test :as t]))

(deftest somewhat-less-wat
  (is (= "{}[" (+ {} []))))

which works well under Clojurescript REPL when I ran (t/test-ns 'todomvc.transact-test) but I can't evaluate the file inside LightTable with a browser connection. The ns part yells an ReferenceError: goog is not defined.

What can I do about it? I added [com.cemerick/clojurescript.test "0.3.1"] to both project's :dependencies and :plugins. Btw, clojurescript and core.async have the same versions as seen on clojurescript.test's project.clj

myguidingstar-zz commented 10 years ago

It turns out that I didn't require the test namespace in HTML