          (util/merge-documents {:components []}
                                {:components [{:name "component"
                                               :tags ["tag"]
-                                              :amount 2}]})))
+                                              :amount 2}]}))
+      "new component with tags")
   (is (= {:components [{:id 1
                        :name "component"
                        :tags []

(deftest merge-documents-test
  (is (= {:components []}
         (util/merge-documents {:components []}
                               {:components []})))
  (is (= {:components [{:id 1
                        :name "component1"
                        :tags ["tag"]

                                  :k "v"}
                               1 {:id 1
                                  :name "second"
                                  :k "k-created"}}))
      "single create")
  (is (= [{:type :create
           :data [{:metadata {:id 1
                              :name "second"}
