Skip to content

Commit

Permalink
removed stale test
Browse files Browse the repository at this point in the history
  • Loading branch information
awkay committed Oct 20, 2023
1 parent f739677 commit cac387b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/test/com/fulcrologic/fulcro/algorithms/normalize_spec.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,6 @@
:unknown {nil #:c{:id 5}}
:a/id {42 #:a{:id 42}}})

(let [last-log (volatile! nil)]
(with-redefs [taoensso.timbre/-log! (fn fake-log [_config level _ _ _ _ _ vargs & _]
(when (= :error level)
(vreset! last-log (str/join " " @vargs))))]
(assertions
"union case missing ident"
(fnorm/tree->db [{:multi {:a (genc :a/id [:a/id :a/name])
:b (genc :b/id [:b/id :a/name])}}]
{:multi {:a/id 3}})
=> {}

@last-log =fn=> #(re-find #"Union components must have an ident" %))))

(assertions
"normalized data"
(fnorm/tree->db [{:foo (genc :id [:id])}] {:foo [:id 123]} true)
Expand Down

0 comments on commit cac387b

Please sign in to comment.