fix remaining tests

pull/1803/head
Ayrat Badykov 6 years ago
parent 3bff167251
commit 2562640bf3
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 1
      apps/block_scout_web/test/block_scout_web/channels/exchange_rate_channel_test.exs
  2. 1
      apps/block_scout_web/test/block_scout_web/controllers/api/rpc/stats_controller_test.exs
  3. 2
      apps/block_scout_web/test/block_scout_web/views/address_view_test.exs

@ -21,6 +21,7 @@ defmodule BlockScoutWeb.ExchangeRateChannelTest do
token = %Token{
available_supply: Decimal.new("1000000.0"),
total_supply: Decimal.new("1000000.0"),
btc_value: Decimal.new("1.000"),
id: "test",
last_updated: DateTime.utc_now(),

@ -122,6 +122,7 @@ defmodule BlockScoutWeb.API.RPC.StatsControllerTest do
eth = %Token{
available_supply: Decimal.new("1000000.0"),
total_supply: Decimal.new("1000000.0"),
btc_value: Decimal.new("1.000"),
id: "test",
last_updated: DateTime.utc_now(),

@ -134,7 +134,9 @@ defmodule BlockScoutWeb.AddressViewTest do
end
test "balance_percentage/1" do
Application.put_env(:explorer, :supply, Explorer.Chain.Supply.ProofOfAuthority)
address = insert(:address, fetched_coin_balance: 2_524_608_000_000_000_000_000_000)
assert "1.0000% Market Cap" = AddressView.balance_percentage(address)
end

Loading…
Cancel
Save