From 74228a9edd893ab38cf6564fb9667a0afb42a86d Mon Sep 17 00:00:00 2001 From: Dmitry Novotochinov Date: Tue, 6 Aug 2019 20:09:24 +0300 Subject: [PATCH] fix tests --- test/cljs/status_im/test/multiaccounts/recover/core.cljs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/cljs/status_im/test/multiaccounts/recover/core.cljs b/test/cljs/status_im/test/multiaccounts/recover/core.cljs index 12e600dd1bee..bb5ef2a605e0 100644 --- a/test/cljs/status_im/test/multiaccounts/recover/core.cljs +++ b/test/cljs/status_im/test/multiaccounts/recover/core.cljs @@ -99,18 +99,15 @@ :db {:multiaccounts/recover {:passphrase "game buzz method pretty zeus fat quit display velvet unveil marine crater" :password "thisisapaswoord"}}})] - (is (contains? new-cofx :node/start)) (is (= "random" (get-in new-cofx [:db :multiaccounts/new-installation-id]))) - (is (= :recover-multiaccount (get-in new-cofx [:db :node/on-ready]))))) + (is (not (nil? (get new-cofx :multiaccounts.recover/recover-multiaccount)))))) (deftest recover-multiaccount-with-checks (let [new-cofx (models/recover-multiaccount-with-checks {:random-guid-generator (constantly "random") :db {:multiaccounts/recover {:passphrase "game buzz method pretty olympic fat quit display velvet unveil marine crater" :password "thisisapaswoord"}}})] - (is (contains? new-cofx :node/start)) - (is (= "random" (get-in new-cofx [:db :multiaccounts/new-installation-id]))) - (is (= :recover-multiaccount (get-in new-cofx [:db :node/on-ready])))) + (is (= "random" (get-in new-cofx [:db :multiaccounts/new-installation-id])))) (let [new-cofx (models/recover-multiaccount-with-checks {:random-guid-generator (constantly "random") :db {:multiaccounts/recover {:passphrase "game buzz method pretty zeus fat quit display velvet unveil marine crater"