Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 4b0c296

Browse files
committed
fix(test): errors by upgrade to absinthe 1.5
1 parent 1638be1 commit 4b0c296

19 files changed

+35
-35
lines changed

test/groupher_server_web/mutation/accounts/customization_test.exs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ defmodule GroupherServer.Test.Mutation.Account.Customization do
5858
assert result["customization"]["displayDensity"] == "25"
5959
end
6060

61-
@paged_post_query """
62-
query($filter: PagedArticleFilter!) {
61+
@paged_posts_query """
62+
query($filter: PagedPostsFilter!) {
6363
pagedPosts(filter: $filter) {
64-
entries {
64+
entries {
6565
commentsCount
6666
commentsParticipators(filter: { first: 5 }) {
6767
id
@@ -85,7 +85,7 @@ defmodule GroupherServer.Test.Mutation.Account.Customization do
8585
user_conn |> mutation_result(@query, variables, "setCustomization")
8686

8787
variables = %{filter: %{page: 1}}
88-
results = user_conn |> query_result(@paged_post_query, variables, "pagedPosts")
88+
results = user_conn |> query_result(@paged_posts_query, variables, "pagedPosts")
8989
assert results["pageSize"] == @max_page_size
9090
end
9191

test/groupher_server_web/mutation/cms/cheatsheet_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ defmodule GroupherServer.Test.Mutation.CMS.Cheatsheet do
1818
end
1919

2020
@sync_cheatsheet_query """
21-
mutation($communityId: ID!, $readme: String!, $lastSync: String!){
21+
mutation($communityId: ID!, $readme: String!, $lastSync: DateTime!){
2222
syncCheatsheet(communityId: $communityId, readme: $readme, lastSync: $lastSync) {
2323
id
2424
readme

test/groupher_server_web/mutation/cms/cms_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ defmodule GroupherServer.Test.Mutation.CMS.Basic do
744744

745745
describe "[passport]" do
746746
@query """
747-
mutation($userId: ID!, $rules: String!) {
747+
mutation($userId: ID!, $rules: Json!) {
748748
stampCmsPassport(userId: $userId, rules: $rules) {
749749
id
750750
}

test/groupher_server_web/mutation/cms/job_reaction_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defmodule GroupherServer.Test.Mutation.JobReaction do
1515

1616
describe "[job star]" do
1717
@query """
18-
mutation($id: ID!, $action: String!, $thread: CmsThread!) {
18+
mutation($id: ID!, $action: ReactableAction!, $thread: ReactThread!) {
1919
reaction(id: $id, action: $action, thread: $thread) {
2020
id
2121
}
@@ -36,7 +36,7 @@ defmodule GroupherServer.Test.Mutation.JobReaction do
3636
end
3737

3838
@query """
39-
mutation($id: ID!, $action: String!, $thread: CmsThread!) {
39+
mutation($id: ID!, $action: ReactableAction!, $thread: ReactThread!) {
4040
undoReaction(id: $id, action: $action, thread: $thread) {
4141
id
4242
}

test/groupher_server_web/mutation/cms/job_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ defmodule GroupherServer.Test.Mutation.Job do
302302

303303
describe "[mutation job tag]" do
304304
@set_tag_query """
305-
mutation($thread: String!, $id: ID!, $tagId: ID! $communityId: ID!) {
305+
mutation($thread: CmsThread!, $id: ID!, $tagId: ID! $communityId: ID!) {
306306
setTag(thread: $thread, id: $id, tagId: $tagId, communityId: $communityId) {
307307
id
308308
title

test/groupher_server_web/mutation/cms/post_reaction_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defmodule GroupherServer.Test.Mutation.PostReaction do
1515

1616
describe "[post star]" do
1717
@query """
18-
mutation($id: ID!, $action: String!, $thread: CmsThread!) {
18+
mutation($id: ID!, $action: ReactableAction!, $thread: ReactThread!) {
1919
reaction(id: $id, action: $action, thread: $thread) {
2020
id
2121
}
@@ -36,7 +36,7 @@ defmodule GroupherServer.Test.Mutation.PostReaction do
3636
end
3737

3838
@query """
39-
mutation($id: ID!, $action: String!, $thread: CmsThread!) {
39+
mutation($id: ID!, $action: ReactableAction!, $thread: ReactThread!) {
4040
undoReaction(id: $id, action: $action, thread: $thread) {
4141
id
4242
}

test/groupher_server_web/mutation/cms/video_reaction_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defmodule GroupherServer.Test.Mutation.VideoReaction do
1515

1616
describe "[video star]" do
1717
@query """
18-
mutation($id: ID!, $action: String!, $thread: CmsThread!) {
18+
mutation($id: ID!, $action: ReactableAction!, $thread: ReactThread!) {
1919
reaction(id: $id, action: $action, thread: $thread) {
2020
id
2121
}
@@ -36,7 +36,7 @@ defmodule GroupherServer.Test.Mutation.VideoReaction do
3636
end
3737

3838
@query """
39-
mutation($id: ID!, $action: String!, $thread: CmsThread!) {
39+
mutation($id: ID!, $action: ReactableAction!, $thread: ReactThread!) {
4040
undoReaction(id: $id, action: $action, thread: $thread) {
4141
id
4242
}

test/groupher_server_web/mutation/cms/video_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defmodule GroupherServer.Test.Mutation.Video do
2727
$link: String!,
2828
$originalAuthor: String!,
2929
$originalAuthorLink: String!,
30-
$publishAt: String!,
30+
$publishAt: DateTime!,
3131
$communityId: ID!,
3232
$tags: [Ids]
3333
) {
@@ -86,7 +86,7 @@ defmodule GroupherServer.Test.Mutation.Video do
8686
$link: String
8787
$originalAuthor: String
8888
$originalAuthorLink: String
89-
$publishAt: String
89+
$publishAt: DateTime,
9090
$tags: [Ids]
9191
) {
9292
updateVideo(
@@ -195,7 +195,7 @@ defmodule GroupherServer.Test.Mutation.Video do
195195

196196
describe "[mutation video tag]" do
197197
@set_tag_query """
198-
mutation($thread: String!, $id: ID!, $tagId: ID! $communityId: ID!) {
198+
mutation($thread: CmsThread!, $id: ID!, $tagId: ID! $communityId: ID!) {
199199
setTag(thread: $thread, id: $id, tagId: $tagId, communityId: $communityId) {
200200
id
201201
title

test/groupher_server_web/mutation/cms/wiki_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ defmodule GroupherServer.Test.Mutation.CMS.Wiki do
1818
end
1919

2020
@sync_wiki_query """
21-
mutation($communityId: ID!, $readme: String!, $lastSync: String!){
21+
mutation($communityId: ID!, $readme: String!, $lastSync: DateTime!){
2222
syncWiki(communityId: $communityId, readme: $readme, lastSync: $lastSync) {
2323
id
2424
readme

test/groupher_server_web/mutation/statistics/statistics_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ defmodule GroupherServer.Test.Mutation.Statistics do
131131
$link: String!,
132132
$originalAuthor: String!,
133133
$originalAuthorLink: String!,
134-
$publishAt: String!,
134+
$publishAt: DateTime!,
135135
$communityId: ID!,
136136
$tags: [Ids]
137137
) {

0 commit comments

Comments
 (0)