do not hardcode values in tests

pull/1756/head
Ayrat Badykov 6 years ago
parent d5aca6bac4
commit 99789ff396
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 4
      apps/explorer/test/explorer/chain_test.exs

@ -3677,8 +3677,8 @@ defmodule Explorer.ChainTest do
balances = Chain.address_to_balances_by_day(address.hash)
assert balances == [
%{date: "2019-04-15", value: Decimal.new("1E-15")},
%{date: "2019-04-14", value: Decimal.new("1E-15")}
%{date: today |> NaiveDateTime.to_date() |> Date.to_string(), value: Decimal.new("1E-15")},
%{date: yesterday |> NaiveDateTime.to_date() |> Date.to_string(), value: Decimal.new("1E-15")}
]
end
end

Loading…
Cancel
Save