Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
blockscout/test/explorer_web/controllers/block_controller_test.exs

11 lines
289 B

defmodule ExplorerWeb.BlockControllerTest do
use ExplorerWeb.ConnCase
describe "GET show/3" do
test "returns a block", %{conn: conn} do
block = insert(:block, number: 3)
conn = get(conn, "/en/blocks/3")
assert conn.assigns.block.id == block.id
end
end
end