Skip to content

Commit

Permalink
remvoe unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasJ committed Jan 30, 2024
1 parent 35db528 commit f6503d5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/subquery_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ defmodule AshPostgres.SubqueryTest do

test "joins are wrapped correctly wrapped in subqueries" do

Check failure on line 6 in test/subquery_test.exs

View workflow job for this annotation

GitHub Actions / ash-ci (14) / mix test

test joins are wrapped correctly wrapped in subqueries (AshPostgres.SubqueryTest)
{:ok, child} = Child.create(%{})
{:ok, parent} = Parent.create(%{visible: true})
{:ok, access} = Access.create(%{parent_id: parent.id, email: "[email protected]"})

{:ok, parent} =
Parent.create(%{visible: true})

Access.create(%{parent_id: parent.id, email: "[email protected]"})

Through.create(%{parent_id: parent.id, child_id: child.id})

{:ok, children} =
Child.read(actor: %{email: "[email protected]"})
assert {:ok, _} =
Child.read(actor: %{email: "[email protected]"})
end
end

0 comments on commit f6503d5

Please sign in to comment.