mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-25 09:22:22 +00:00
Merge branch 'fix-resource-tests' into 'master'
Fix resource tests by changing URL See merge request framasoft/mobilizon!487
This commit is contained in:
commit
0f489757f7
1 changed files with 5 additions and 5 deletions
|
@ -154,7 +154,7 @@ defmodule Mobilizon.GraphQL.Resolvers.ResourceTest do
|
|||
}
|
||||
"""
|
||||
|
||||
@resource_url "https://framasoft.org/fr/full"
|
||||
@resource_url "https://joinmobilizon.org"
|
||||
@resource_title "my resource"
|
||||
@updated_resource_title "my updated resource"
|
||||
@folder_title "my folder"
|
||||
|
@ -405,10 +405,10 @@ defmodule Mobilizon.GraphQL.Resolvers.ResourceTest do
|
|||
assert is_nil(res["errors"])
|
||||
|
||||
assert res["data"]["createResource"]["metadata"]["faviconUrl"] ==
|
||||
"https://framasoft.org/icons/favicon.png"
|
||||
"https://joinmobilizon.org/icons/favicon.png"
|
||||
|
||||
assert res["data"]["createResource"]["metadata"]["imageRemoteUrl"] ==
|
||||
"https://framasoft.org/img/opengraph/full.jpg"
|
||||
"https://joinmobilizon.org/img/opengraph/home.jpg"
|
||||
|
||||
assert res["data"]["createResource"]["path"] == "/#{@resource_title}"
|
||||
assert res["data"]["createResource"]["resourceUrl"] == @resource_url
|
||||
|
@ -461,10 +461,10 @@ defmodule Mobilizon.GraphQL.Resolvers.ResourceTest do
|
|||
assert is_nil(res["errors"])
|
||||
|
||||
assert res["data"]["createResource"]["metadata"]["faviconUrl"] ==
|
||||
"https://framasoft.org/icons/favicon.png"
|
||||
"https://joinmobilizon.org/icons/favicon.png"
|
||||
|
||||
assert res["data"]["createResource"]["metadata"]["imageRemoteUrl"] ==
|
||||
"https://framasoft.org/img/opengraph/full.jpg"
|
||||
"https://joinmobilizon.org/img/opengraph/home.jpg"
|
||||
|
||||
assert res["data"]["createResource"]["path"] == "#{parent_path}/#{@resource_title}"
|
||||
assert res["data"]["createResource"]["resourceUrl"] == @resource_url
|
||||
|
|
Loading…
Reference in a new issue