reformat test namespaces

This commit is contained in:
Roman Volosovskyi 2018-05-08 14:24:13 +03:00
parent 0082f5dd95
commit 6e34ede299
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
14 changed files with 313 additions and 320 deletions

View File

@ -21,7 +21,7 @@
:from "a"
:chat-id "a"}))))
(testing "it returns false when it's already in the not-loaded-message-ids"
(is (not (message/add-to-chat? {:db {:chats {"a" {:not-loaded-message-ids #{"message-id" }}}}}
(is (not (message/add-to-chat? {:db {:chats {"a" {:not-loaded-message-ids #{"message-id"}}}}}
{:message-id "message-id"
:from "a"
:chat-id "a"})))))

View File

@ -432,8 +432,6 @@
(rf/dispatch [:remove-contact-from-group "browse" new-group-id])
(is (= groups-with-new-group2 @contact-groups)))
(testing ":add-contacts-to-group event"
(rf/dispatch [:add-contacts-to-group new-group-id ["browse"]])

View File

@ -17,7 +17,6 @@
:signing-phrase "baby atom limo"
:public-key "0x04f5722fba79eb36d73263417531007f43d13af76c6233573a8e3e60f667710611feba0785d751b50609bfc0b7cef35448875c5392c0a91948c95798a0ce600847"})
(defn test-fixtures []
(rf/reg-fx ::events/init-store #())
(rf/reg-fx ::account-events/save-account #()))

View File

@ -1,5 +1,5 @@
(ns status-im.test.protocol.core
(:require [cljs.test :refer-macros [deftest is testing async ]]
(:require [cljs.test :refer-macros [deftest is testing async]]
[cljs.nodejs :as nodejs]
re-frame.db
status-im.ui.screens.events

View File

@ -3,7 +3,6 @@
[status-im.transport.utils :as utils]
[cljs.test :refer-macros [deftest is testing]]))
(def enode "enode://08d8eb6177b187049f6c97ed3f6c74fbbefb94c7ad10bafcaf4b65ce89c314dcfee0a8bc4e7a5b824dfa08b45b360cc78f34f0aff981f8386caa07652d2e601b@163.172.177.138:40404")
(def enode2 "enode://12d8eb6177b187049f6c97ed3f6c74fbbefb94c7ad10bafcaf4b65ce89c314dcfee0a8bc4e7a5b824dfa08b45b360cc78f34f0aff981f8386caa07652d2e601b@163.172.177.138:40404")

View File

@ -10,7 +10,7 @@
(is (= nil (eip681/parse-uri "ethereum:")))
(is (= nil (eip681/parse-uri "ethereum:?value=1")))
(is (= nil (eip681/parse-uri "bitcoin:0x1234")))
(is (= nil(eip681/parse-uri "ethereum:0x1234")))
(is (= nil (eip681/parse-uri "ethereum:0x1234")))
(is (= {:address "0x89205a3a3b2a69de6dbf7f01ed13b2108b2c43e7" :chain-id 1} (eip681/parse-uri "ethereum:0x89205a3a3b2a69de6dbf7f01ed13b2108b2c43e7")))
(is (= {:address "0x89205a3a3b2a69de6dbf7f01ed13b2108b2c43e7" :value "1" :chain-id 1} (eip681/parse-uri "ethereum:0x89205a3a3b2a69de6dbf7f01ed13b2108b2c43e7?value=1")))
(is (= {:address "0x89205a3a3b2a69de6dbf7f01ed13b2108b2c43e7", :chain-id 1} (eip681/parse-uri "ethereum:0x89205a3a3b2a69de6dbf7f01ed13b2108b2c43e7?unknown=1")))
@ -61,7 +61,6 @@
{:keys [address] :as params} (eip681/parse-uri uri)]
(is (= uri (eip681/generate-uri address (dissoc params :address))))))
(deftest parse-eth-value
(is (= nil (eip681/parse-eth-value nil)))
(is (= nil (eip681/parse-eth-value 1)))

View File

@ -12,7 +12,6 @@
(true? first-parameter))}
{:trigger [:key3 :p1 :p2 :p3]}]))
(deftest matching-event
(is (empty? (mixpanel/matching-events {} [:non-existing] definitions)))
(is (= 1 (count (mixpanel/matching-events {} [:key] definitions))))

View File

@ -22,7 +22,6 @@
({:timestamp "1505764322000"}
{:timestamp "1505750000000"})}))
(deftest group-transactions-by-date
"Check if transactions are sorted by date"
(is (= (transactions-subs/group-transactions-by-date transactions)