 (ns hatti.utils.style-test
   (:require-macros [cljs.test :refer [is deftest testing]])
   (:require [clojure.string :refer [join]]
-            [hatti.utils.style :refer [customizable-style?
+            [hatti.utils.style :refer [answer->color
+                                       customizable-style?
                                        get-css-rule-map
                                        group-user-defined-colors-by-answer
                                        group-user-defined-styles-by-answer
+                                       qualitative-palette
                                        user-customizable-styles]]))
 
 (def customizable-style [(first user-customizable-styles)

  (testing "returns a map of answer to color"
    (is (= (group-user-defined-colors-by-answer field)
           {"good" "green" "bad" "red"}))))

(def css-rule-map
  {(-> customizable-style first keyword) "style-definition"})

(def answers
  [{:appearance "color:green;font-weight:bold;"
    :name "good"}
   {:appearance "color:red;"
    :name "bad"}])

(def field {:name field-name
            :full-name field-name
            :type "select one"
            :children answers})

(deftest test-customizable-style?
  (testing "returns whether a style representation is customizable"
