parent
5b14292aa9
commit
8ee4e62087
@ -0,0 +1,16 @@ |
||||
defmodule Explorer.Chain.TokenTest do |
||||
use Explorer.DataCase |
||||
|
||||
import Explorer.Factory |
||||
|
||||
alias Explorer.Chain |
||||
|
||||
describe "cataloged_tokens/0" do |
||||
test "filters uncataloged tokens out" do |
||||
token = insert(:token, cataloged: true) |
||||
insert(:token, cataloged: false) |
||||
|
||||
assert Repo.all(Chain.Token.cataloged_tokens()) == [token.contract_address_hash] |
||||
end |
||||
end |
||||
end |
Loading…
Reference in new issue