Skip to content

Commit

Permalink
remove comment block from module tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dnolen committed Aug 16, 2017
1 parent 56a880c commit 58a783c
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions src/test/clojure/cljs/module_graph_tests.clj
Original file line number Diff line number Diff line change
Expand Up @@ -151,34 +151,3 @@
(deftest test-module-for
(is (= :page1 (module-graph/module-for 'page1.a (modules opts))))
(is (= :page1 (module-graph/module-for "page1.a" (modules opts)))))

(comment
(require '[clojure.java.io :as io]
'[clojure.edn :as edn]
'[clojure.pprint :refer [pprint]]
'[clojure.set :as set])

(def modules
{:entry-point {:output-to "resources/public/js/demos/demos.js"
:entries '#{cards.card-ui}}
:main {:output-to "resources/public/js/demos/main-ui.js"
:entries '#{recipes.dynamic-ui-main}}})

(def inputs
(edn/read-string
{:readers {'object (fn [x] nil)
'cljs.closure.JavaScriptFile (fn [x] x)}}
(slurp (io/file "inputs.edn"))))

(module-graph/expand-modules modules inputs)

(pprint
(binding [module-graph/deps-for (memoize module-graph/deps-for)]
(module-graph/deps-for-entry "cards.card_ui"
(module-graph/index-inputs inputs))))

(get (module-graph/index-inputs inputs) "cards.card_ui")

(get (module-graph/index-inputs inputs) "cards.dynamic_routing_cards")
(get (module-graph/index-inputs inputs) "fulcro.client.routing")
)

0 comments on commit 58a783c

Please sign in to comment.