File tree 1 file changed +4
-7
lines changed
src/status_im/contexts/wallet
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 68
68
69
69
(deftest get-keypairs
70
70
(let [db {}
71
- keypairs [{:public-key " public_key1" :private-key " private_key1 " }
72
- {:public-key " public_key2" :private-key " private_key2 " }]
71
+ keypairs [{:public-key " public_key1" }
72
+ {:public-key " public_key2" }]
73
73
expected-db {:wallet {:ui {:create-account {:new-keypair " test-keypair" }}
74
74
:keypairs keypairs}}
75
75
effects (events/get-keypairs {:db db})
78
78
79
79
(deftest get-keypairs-success
80
80
(let [db {}
81
- keypairs [{:public-key " public_key1" :private-key " private_key1 " }
82
- {:public-key " public_key2" :private-key " private_key2 " }]
81
+ keypairs [{:public-key " public_key1" }
82
+ {:public-key " public_key2" }]
83
83
expected-db {:wallet {:ui {:create-account {:new-keypair " test-keypair" }}
84
84
:keypairs keypairs}}
85
85
effects (events/get-keypairs-success {:db db} keypairs)
86
86
result-db (:db effects)]
87
87
(is (match? result-db expected-db))))
88
88
89
-
90
-
91
-
92
89
(deftest store-collectibles
93
90
(testing " (displayable-collectible?) helper function"
94
91
(let [expected-results [[true
You can’t perform that action at this time.
0 commit comments