You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two JS objects or arrays with =? contents should be =?.
Deep comparison on JS objects is intractable, but we can support the obvious cases of vanilla objects and arrays. If the constructor on either side is something else (like a custom class) then it can be always false.
;; I want to write this.
(deftestslick-test
(is (=? #js {:abc7, :xyz {:some"Clojure map"}}
(a-function7))))
;; Instead I have to write this.
(deftestclunky-test
(let [js-blob (a-function7)]
(is (=?7 (.-abc js-blob)))
(is (=? {:some"Clojure map"} (.-xyz js-blob)))))
The text was updated successfully, but these errors were encountered:
Two JS objects or arrays with
=?
contents should be=?
.Deep comparison on JS objects is intractable, but we can support the obvious cases of vanilla objects and arrays. If the constructor on either side is something else (like a custom class) then it can be always
false
.The text was updated successfully, but these errors were encountered: