Fix resource tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
b94bf2ad87
commit
e6b2e91ced
|
@ -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", %{
|
||||||
|
|
Loading…
Reference in a new issue