Skip to content

Commit 014d665

Browse files
committed
test
1 parent 4e902a6 commit 014d665

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Diff for: src/status_im/contexts/wallet/events_test.cljs

+4-7
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868

6969
(deftest get-keypairs
7070
(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"}]
7373
expected-db {:wallet {:ui {:create-account {:new-keypair "test-keypair"}}
7474
:keypairs keypairs}}
7575
effects (events/get-keypairs {:db db})
@@ -78,17 +78,14 @@
7878

7979
(deftest get-keypairs-success
8080
(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"}]
8383
expected-db {:wallet {:ui {:create-account {:new-keypair "test-keypair"}}
8484
:keypairs keypairs}}
8585
effects (events/get-keypairs-success {:db db} keypairs)
8686
result-db (:db effects)]
8787
(is (match? result-db expected-db))))
8888

89-
90-
91-
9289
(deftest store-collectibles
9390
(testing "(displayable-collectible?) helper function"
9491
(let [expected-results [[true

0 commit comments

Comments
 (0)