Extend tests with check of empty number of transactions

pull/2425/head
Victor Baranov 5 years ago
parent 701e0f6038
commit 74b39c42b0
  1. 8
      apps/block_scout_web/test/block_scout_web/controllers/address_transaction_controller_test.exs

@ -13,10 +13,12 @@ defmodule BlockScoutWeb.AddressTransactionControllerTest do
assert html_response(conn, 422)
end
test "with valid address hash without address", %{conn: conn} do
conn = get(conn, address_transaction_path(conn, :index, "0x8bf38d4764929064f2d4d3a56520a76ab3df415b"))
test "with valid address hash without address in the DB", %{conn: conn} do
conn = get(conn, address_transaction_path(conn, :index, "0x8bf38d4764929064f2d4d3a56520a76ab3df415b", %{"type" => "JSON"}))
assert html_response(conn, 200)
assert json_response(conn, 200)
transaction_tiles = json_response(conn, 200)["items"]
assert transaction_tiles |> length() == 0
end
test "returns transactions for the address", %{conn: conn} do

Loading…
Cancel
Save