diff --git a/apps/explorer_web/test/explorer_web/exchange_rates/usd_test.exs b/apps/explorer_web/test/explorer_web/exchange_rates/usd_test.exs index 2144e31ba3..d1781811e1 100644 --- a/apps/explorer_web/test/explorer_web/exchange_rates/usd_test.exs +++ b/apps/explorer_web/test/explorer_web/exchange_rates/usd_test.exs @@ -38,5 +38,11 @@ defmodule ExplorerWeb.ExchangeRates.USDTest do assert %USD{value: Decimal.new(0.000005)} == USD.from(wei, token) end + + test "returns USD struct from decimal usd value" do + value = Decimal.new(0.000005) + + assert %USD{value: ^value} = USD.from(value) + end end end