Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryn committed Aug 6, 2019
1 parent e43aa96 commit 74228a9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/cljs/status_im/test/multiaccounts/recover/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 74228a9

Please sign in to comment.