Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alwx committed Feb 12, 2024
1 parent 16c3453 commit 4ce51b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

(declare build-contact)

(defn- set-new-identity
(defn set-new-identity
[{:keys [db]} [{:keys [input build-success-fn failure-fn]}]]
(let [user-public-key (get-in db [:profile/profile :public-key])
{:keys [input id ens state]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(:require
[cljs.test :refer-macros [deftest are]]
matcher-combinators.test
[re-frame.core :as re-frame]
[status-im.contexts.chat.home.add-new-contact.events :as events]))

(def user-ukey
Expand Down Expand Up @@ -90,7 +91,7 @@
:config {:NetworkId 1}}}})

(deftest set-new-identity-test
(with-redefs [events/dispatcher (fn [& args] args)]
(with-redefs [re-frame/dispatch (fn [& args] args)]
(are [i edb] (match? (events/set-new-identity {:db db} [{:input i}]) edb)

"" {:db db}
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/contexts/shell/qr_reader/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
(wallet-validation/eth-address? scanned-text))

(defn pairing-qr-code?
[scanned-text]
[_]
false)

(defn load-and-show-profile
Expand Down

0 comments on commit 4ce51b7

Please sign in to comment.