fix tests

This commit is contained in:
Eric Dvorsak 2018-08-07 13:27:19 +02:00
parent 96ac6eb83f
commit 1769bfb695
No known key found for this signature in database
GPG Key ID: 932AC1CE5F05DE0C
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@
[status-im.utils.ethereum.ens :as ens])) [status-im.utils.ethereum.ens :as ens]))
(deftest namehash (deftest namehash
(is (= ens/default-namehash (ens/namehash nil))) (is (= (str "0x" ens/default-namehash) (ens/namehash nil)))
(is (= ens/default-namehash (ens/namehash ""))) (is (= (str "0x" ens/default-namehash) (ens/namehash "")))
(is (= "0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae" (is (= "0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae"
(ens/namehash "eth"))) (ens/namehash "eth")))
(is (= "0xde9b09fd7c5f901e23a3f19fecc54828e9c848539801e86591bd9801b019f84f" (is (= "0xde9b09fd7c5f901e23a3f19fecc54828e9c848539801e86591bd9801b019f84f"