[#21335] test: test match issue

This commit is contained in:
Mohsen 2024-10-02 22:05:16 +03:00
parent ff9cbbe405
commit 9341d407f3
No known key found for this signature in database
GPG Key ID: 20BACCB8426033CE

View File

@ -41,7 +41,7 @@
(reset! rf-db/app-db {:profile/profile {:test-networks-enabled? false} (reset! rf-db/app-db {:profile/profile {:test-networks-enabled? false}
:wallet-connect/sessions [{:topic topic-1 :wallet-connect/sessions [{:topic topic-1
:chains ["eip155:1"]}]}) :chains ["eip155:1"]}]})
(is (match? nil (is (match? {:db nil}
(dispatch [event-id (dispatch [event-id
{:topic topic-2 {:topic topic-2
:chains ["eip155:1"]}]))))) :chains ["eip155:1"]}])))))
@ -51,7 +51,7 @@
(reset! rf-db/app-db {:profile/profile {:test-networks-enabled? true} (reset! rf-db/app-db {:profile/profile {:test-networks-enabled? true}
:wallet-connect/sessions [{:topic topic :wallet-connect/sessions [{:topic topic
:chains ["eip155:1"]}]}) :chains ["eip155:1"]}]})
(is (match? nil (is (match? {:db nil}
(dispatch [event-id (dispatch [event-id
{:topic topic {:topic topic
:chains ["eip155:11155111"]}])))))) :chains ["eip155:11155111"]}]))))))