             [discuss.communication :as com]
             [discuss.debug :as debug]
             [discuss.extensions]
+            [discuss.find :as find]
             [discuss.integration :as integration]
             [discuss.lib :as lib]
             [discuss.lib.views :as vlib]

           (testing "fn get-parent"
             (is (= "test-get-parent" (.-id (integration/get-parent doms-raw "Eine Krise in den neunziger Jahren brachte die Wende für die Stadt"))))
             ;(is (= "PRE" (.-nodeName (integration/get-parent doms-raw "foo bar baz lorem ipsum"))))
             (is (= "figwheel-heads-up-content-area" (.-id (integration/get-parent doms-raw "")))))
           (testing "fn convert-reference"
             (is true))))

(deftest communication-test
         "Testing `discuss.communication`"
         (testing "fn token-header"
           (is (= {"X-CSRF-Token" nil} (com/token-header)))))

(defcard integration-stuff
         (.-id (integration/get-parent (.getElementsByTagName js/document "*") "")))
                  (debug/control-buttons lib/app-state)))

#_(defcard debug
           (dc/om-root debug/debug-view)
           lib/app-state)

#_(defcard global-state
           @lib/app-state)

(defcard find-statement
           "Query database to find stataments."
           (dc/om-root find/view))

(deftest find-tests
         "Testing the small search engine in `discuss.find`"
         (testing "fn statement"
           ;(is (= (type {}) (type (find/statement "foo"))))
           ))

(deftest integration-test
         "Testing `discuss.integration`"
