                               "`" 'selector# "'"
                               " cannot be undefined"))
                      ~@(->> fn-keyword
-                            (alg/topsort dependecy-dag)
+                            (alg/topsort dependency-dag)
                             (filter data-function?)
                             (map key->sym)))
       (throw (IllegalArgumentException.


(defmacro ensure-dependencies-defined [fn-name]
  (let [fn-keyword (keyword fn-name)]
    (if (graph/has-node? dependecy-dag fn-keyword)
      `(are-with-msg [selector#]
                     (is (not= (selector#)
                               nil)

            [loom.graph :as graph]
            [loom.alg :as alg]))

(def dependency-dag
  (graph/digraph
   [:get-image-data :extract-image-tag]

