pull/2576/head
saneery 5 years ago
parent a753e1467b
commit c76b7525da
  1. 9
      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") "OptimizationUsed" => if(contract.optimization, do: "1", else: "0")
} }
] ]
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response)
end end
@ -75,6 +76,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do
"OptimizationUsed" => "" "OptimizationUsed" => ""
} }
] ]
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response)
end end
@ -99,6 +101,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do
"OptimizationUsed" => "" "OptimizationUsed" => ""
} }
] ]
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response)
end end
@ -127,6 +130,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do
"OptimizationUsed" => "" "OptimizationUsed" => ""
} }
] ]
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response)
end end
@ -151,6 +155,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do
"OptimizationUsed" => if(contract.optimization, do: "1", else: "0") "OptimizationUsed" => if(contract.optimization, do: "1", else: "0")
} }
] ]
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response)
end end
@ -175,6 +180,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do
"OptimizationUsed" => "" "OptimizationUsed" => ""
} }
] ]
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response)
end end
@ -199,6 +205,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do
"OptimizationUsed" => "" "OptimizationUsed" => ""
} }
] ]
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response)
end end
@ -250,6 +257,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do
"OptimizationUsed" => "" "OptimizationUsed" => ""
} }
] ]
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response)
end end
@ -279,6 +287,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do
"OptimizationUsed" => "" "OptimizationUsed" => ""
} }
] ]
assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response) assert :ok = ExJsonSchema.Validator.validate(listcontracts_schema(), response)
end end
end end

Loading…
Cancel
Save