diff --git a/apps/block_scout_web/test/block_scout_web/controllers/api/rpc/contract_controller_test.exs b/apps/block_scout_web/test/block_scout_web/controllers/api/rpc/contract_controller_test.exs index 22b711d9d3..3fbd1713bb 100644 --- a/apps/block_scout_web/test/block_scout_web/controllers/api/rpc/contract_controller_test.exs +++ b/apps/block_scout_web/test/block_scout_web/controllers/api/rpc/contract_controller_test.exs @@ -52,6 +52,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do "OptimizationUsed" => if(contract.optimization, do: "1", else: "0") } ] + assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) end @@ -75,6 +76,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do "OptimizationUsed" => "" } ] + assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) end @@ -99,6 +101,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do "OptimizationUsed" => "" } ] + assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) end @@ -127,6 +130,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do "OptimizationUsed" => "" } ] + assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) end @@ -151,6 +155,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do "OptimizationUsed" => if(contract.optimization, do: "1", else: "0") } ] + assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) end @@ -175,6 +180,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do "OptimizationUsed" => "" } ] + assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) end @@ -199,6 +205,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do "OptimizationUsed" => "" } ] + assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) end @@ -250,6 +257,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do "OptimizationUsed" => "" } ] + assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) end @@ -279,6 +287,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do "OptimizationUsed" => "" } ] + assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) end end