Add coverage for `Decimal` to `USD` conversion

pull/202/head
Tim Mecklem 7 years ago
parent 6281b74e6f
commit 180f84e266
  1. 6
      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

Loading…
Cancel
Save