From 8e441fdc17df32a4900edda96dec6870465f9002 Mon Sep 17 00:00:00 2001 From: Jamie Caprani Date: Fri, 22 Dec 2023 09:17:58 +0000 Subject: [PATCH] chore: add test --- src/status_im/contexts/wallet/send/utils_test.cljs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/status_im/contexts/wallet/send/utils_test.cljs diff --git a/src/status_im/contexts/wallet/send/utils_test.cljs b/src/status_im/contexts/wallet/send/utils_test.cljs new file mode 100644 index 000000000000..f11502b9779a --- /dev/null +++ b/src/status_im/contexts/wallet/send/utils_test.cljs @@ -0,0 +1,10 @@ +(ns status-im.contexts.wallet.send.utils-test + (:require [cljs.test :refer [deftest is testing]] + [status-im.contexts.wallet.send.utils :as utils])) + +(deftest test-amount-in-hex + (testing "Test amount-in-hex function" + (let [amount 1 + decimal 18] + (is (= (utils/amount-in-hex amount decimal) + "0xde0b6b3a7640000")))))