Skip to content

Commit

Permalink
solve unused vars on tests (Elixir 1.11 compiler)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriano Mitre authored and adrianomitre committed Oct 29, 2020
1 parent 76e6922 commit bf00811
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/norm/core/schema_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ defmodule Norm.Core.SchemaTest do

test "allows defaults" do
spec = schema(%Movie{})
assert movie = conform(%Movie{}, spec)
assert conform(%Movie{}, spec)
end

property "can generate proper structs" do
Expand Down
2 changes: 1 addition & 1 deletion test/norm_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ defmodule NormTest do
assert {:error, _errors} = conform([{:foo, :bar} | list], spec)

assert list == conform!(list, coll_of(opts, [min_count: 2, distinct: true]))
assert {:error, errors} = conform([], coll_of(opts, [min_count: 2, distinct: true]))
assert {:error, _errors} = conform([], coll_of(opts, [min_count: 2, distinct: true]))
end

property "can be generated" do
Expand Down

0 comments on commit bf00811

Please sign in to comment.