Fix resource tests

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-10-20 10:24:34 +02:00
parent b94bf2ad87
commit e6b2e91ced
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -341,7 +341,7 @@ defmodule Mobilizon.GraphQL.Resolvers.ResourceTest do
} }
) )
assert hd(res["errors"])["message"] == "No such resource" assert hd(res["errors"])["message"] == "Resource not found"
end end
test "get_resource/3 for a non-existing group", %{ test "get_resource/3 for a non-existing group", %{
@ -778,7 +778,7 @@ defmodule Mobilizon.GraphQL.Resolvers.ResourceTest do
} }
) )
assert hd(res["errors"])["message"] == "No such resource" assert hd(res["errors"])["message"] == "Resource not found"
end end
test "delete_resource/3 deletes a folder and children", %{ test "delete_resource/3 deletes a folder and children", %{
@ -828,7 +828,7 @@ defmodule Mobilizon.GraphQL.Resolvers.ResourceTest do
} }
) )
assert hd(res["errors"])["message"] == "No such resource" assert hd(res["errors"])["message"] == "Resource not found"
res = res =
conn conn
@ -841,7 +841,7 @@ defmodule Mobilizon.GraphQL.Resolvers.ResourceTest do
} }
) )
assert hd(res["errors"])["message"] == "No such resource" assert hd(res["errors"])["message"] == "Resource not found"
end end
test "delete_resource/3 deletes a resource not found", %{ test "delete_resource/3 deletes a resource not found", %{