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/skipped_internal_transactio...

26 lines
847 B

defmodule Explorer.SkippedInternalTransactionsTest do
use Explorer.DataCase
alias Explorer.SkippedInternalTransactions
describe "first/0 when there are no transactions" do
test "returns no transaction hashes" do
assert SkippedInternalTransactions.first() == []
end
end
describe "first/0 when there are transactions with internal transactions" do
test "returns no transaction hashes" do
transaction = insert(:transaction)
insert(:internal_transaction, transaction: transaction)
assert SkippedInternalTransactions.first() == []
end
end
describe "first/0 when there are transactions with no internal transactions" do
test "returns the transaction hash" do
insert(:transaction, hash: "0xdeadbeef")
assert SkippedInternalTransactions.first() == ["0xdeadbeef"]
end
end
end