chore: make test assertion clearer to debug CI

This commit is contained in:
Zach Daniel 2024-08-08 10:01:33 -04:00
parent cdd94a8b93
commit cc7a761512

View file

@ -616,11 +616,12 @@ defmodule AshSql.AggregateTest do
|> Ash.Changeset.manage_relationship(:post, post, type: :append_and_remove)
|> Ash.create!()
assert %{first_comment_nils_first_include_nil: "match"} =
assert "match" ==
Post
|> Ash.Query.filter(id == ^post.id)
|> Ash.Query.load(:first_comment_nils_first_include_nil)
|> Ash.read_one!()
|> Map.get(:first_comment_nils_first_include_nil)
end
test "it can be sorted on" do