|
|
@ -8,7 +8,7 @@ defmodule BlockScoutWeb.AddressTokenBalanceControllerTest do |
|
|
|
test "without AJAX", %{conn: conn} do |
|
|
|
test "without AJAX", %{conn: conn} do |
|
|
|
%Address{hash: hash} = Factory.insert(:address) |
|
|
|
%Address{hash: hash} = Factory.insert(:address) |
|
|
|
|
|
|
|
|
|
|
|
response_conn = get(conn, address_token_balance_path(conn, :index, :en, to_string(hash))) |
|
|
|
response_conn = get(conn, address_token_balance_path(conn, :index, to_string(hash))) |
|
|
|
|
|
|
|
|
|
|
|
assert html_response(response_conn, 404) |
|
|
|
assert html_response(response_conn, 404) |
|
|
|
end |
|
|
|
end |
|
|
@ -16,7 +16,7 @@ defmodule BlockScoutWeb.AddressTokenBalanceControllerTest do |
|
|
|
test "with AJAX without valid address", %{conn: conn} do |
|
|
|
test "with AJAX without valid address", %{conn: conn} do |
|
|
|
ajax_conn = ajax(conn) |
|
|
|
ajax_conn = ajax(conn) |
|
|
|
|
|
|
|
|
|
|
|
response_conn = get(ajax_conn, address_token_balance_path(ajax_conn, :index, :en, "invalid_address")) |
|
|
|
response_conn = get(ajax_conn, address_token_balance_path(ajax_conn, :index, "invalid_address")) |
|
|
|
|
|
|
|
|
|
|
|
assert html_response(response_conn, 404) |
|
|
|
assert html_response(response_conn, 404) |
|
|
|
end |
|
|
|
end |
|
|
@ -24,7 +24,7 @@ defmodule BlockScoutWeb.AddressTokenBalanceControllerTest do |
|
|
|
test "with AJAX with valid address without address still returns token balances", %{conn: conn} do |
|
|
|
test "with AJAX with valid address without address still returns token balances", %{conn: conn} do |
|
|
|
ajax_conn = ajax(conn) |
|
|
|
ajax_conn = ajax(conn) |
|
|
|
|
|
|
|
|
|
|
|
response_conn = get(ajax_conn, address_token_balance_path(ajax_conn, :index, :en, Factory.address_hash())) |
|
|
|
response_conn = get(ajax_conn, address_token_balance_path(ajax_conn, :index, Factory.address_hash())) |
|
|
|
|
|
|
|
|
|
|
|
assert html_response(response_conn, 200) |
|
|
|
assert html_response(response_conn, 200) |
|
|
|
end |
|
|
|
end |
|
|
@ -34,7 +34,7 @@ defmodule BlockScoutWeb.AddressTokenBalanceControllerTest do |
|
|
|
|
|
|
|
|
|
|
|
ajax_conn = ajax(conn) |
|
|
|
ajax_conn = ajax(conn) |
|
|
|
|
|
|
|
|
|
|
|
response_conn = get(ajax_conn, address_token_balance_path(ajax_conn, :index, :en, hash)) |
|
|
|
response_conn = get(ajax_conn, address_token_balance_path(ajax_conn, :index, hash)) |
|
|
|
|
|
|
|
|
|
|
|
assert html_response(response_conn, 200) |
|
|
|
assert html_response(response_conn, 200) |
|
|
|
end |
|
|
|
end |
|
|
|