@@ -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", %{
|
||||||
|
|||||||
Reference in New Issue
Block a user