Update broken tests

pull/2376/head
saneery 5 years ago
parent 4763fce32d
commit 364d632928
  1. 5
      apps/block_scout_web/test/block_scout_web/controllers/api/v1/decompiled_smart_contract_controller_test.exs
  2. 5
      apps/block_scout_web/test/block_scout_web/controllers/api/v1/verified_smart_contract_controller_test.exs

@ -1,7 +1,6 @@
defmodule BlockScoutWeb.API.V1.DecompiledControllerTest do
use BlockScoutWeb.ConnCase
alias BlockScoutWeb.ApiRouter.Helpers
alias Explorer.Repo
alias Explorer.Chain.{Address, DecompiledSmartContract}
@ -115,8 +114,4 @@ defmodule BlockScoutWeb.API.V1.DecompiledControllerTest do
assert request.status == 403
end
end
def api_v1_decompiled_smart_contract_path(conn, action) do
"/api" <> Helpers.api_v1_decompiled_smart_contract_path(conn, action)
end
end

@ -1,7 +1,6 @@
defmodule BlockScoutWeb.API.V1.VerifiedControllerTest do
use BlockScoutWeb.ConnCase
alias BlockScoutWeb.ApiRouter.Helpers
alias Explorer.Factory
# alias Explorer.Chain.DecompiledSmartContract
@ -70,8 +69,4 @@ defmodule BlockScoutWeb.API.V1.VerifiedControllerTest do
assert response.status == 201
assert Jason.decode!(response.resp_body) == %{"status" => "success"}
end
def api_v1_verified_smart_contract_path(conn, action) do
"/api" <> Helpers.api_v1_verified_smart_contract_path(conn, action)
end
end

Loading…
Cancel
Save