From c76b7525da37a4830ff6ebb48f3fe35d8f710f08 Mon Sep 17 00:00:00 2001 From: saneery Date: Sun, 18 Aug 2019 12:23:38 +0300 Subject: [PATCH] mix format --- .../controllers/api/rpc/contract_controller_test.exs | 9 +++++++++ 1 file changed, 9 insertions(+) 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