Fix gettext and format tests

pull/2143/head
Victor Baranov 6 years ago
parent 8df146b4e6
commit de58a6f7e7
  1. 7
      apps/block_scout_web/priv/gettext/default.pot
  2. 4
      apps/block_scout_web/test/block_scout_web/controllers/address_transaction_controller_test.exs

@ -1742,16 +1742,11 @@ msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address_internal_transaction/index.html.eex:73 #: lib/block_scout_web/templates/address_internal_transaction/index.html.eex:73
#: lib/block_scout_web/templates/address_token/index.html.eex:26 #: lib/block_scout_web/templates/address_token/index.html.eex:26
#: lib/block_scout_web/templates/address_transaction/index.html.eex:70 #: lib/block_scout_web/templates/address_transaction/index.html.eex:72
#: lib/block_scout_web/templates/tokens/transfer/index.html.eex:33 #: lib/block_scout_web/templates/tokens/transfer/index.html.eex:33
msgid "CSV" msgid "CSV"
msgstr "" msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_transaction/index.html.eex:74
msgid "CSV"
msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/views/transaction_view.ex:44 #: lib/block_scout_web/views/transaction_view.ex:44
msgid "ERC-20 " msgid "ERC-20 "

@ -147,6 +147,10 @@ defmodule BlockScoutWeb.AddressTransactionControllerTest do
conn = get(conn, "/token_transfers_csv", %{"address_id" => to_string(address.hash)}) conn = get(conn, "/token_transfers_csv", %{"address_id" => to_string(address.hash)})
assert conn.resp_body |> String.split("\n") |> Enum.count() == 4
end
end
describe "GET transactions_csv/2" do describe "GET transactions_csv/2" do
test "download csv file with transactions", %{conn: conn} do test "download csv file with transactions", %{conn: conn} do
address = insert(:address) address = insert(:address)

Loading…
Cancel
Save