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

Commit 9bdf37f

Browse files
committed
chore(works): fix test
1 parent 29b6eac commit 9bdf37f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/groupher_server_web/mutation/cms/articles/works_test.exs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ defmodule GroupherServer.Test.Mutation.Articles.Works do
2626
$title: String!,
2727
$body: String,
2828
$digest: String!,
29-
$length: Int,
3029
$communityId: ID!,
3130
$articleTags: [Id]
3231
) {
3332
createWorks(
3433
title: $title,
3534
body: $body,
3635
digest: $digest,
37-
length: $length,
3836
communityId: $communityId,
3937
articleTags: $articleTags
4038
) {
@@ -82,6 +80,7 @@ defmodule GroupherServer.Test.Mutation.Articles.Works do
8280
works_attr |> Map.merge(%{communityId: community.id, articleTags: [article_tag.id]})
8381

8482
created = user_conn |> mutation_result(@create_works_query, variables, "createWorks")
83+
8584
{:ok, works} = ORM.find(Works, created["id"], preload: :article_tags)
8685

8786
assert exist_in?(%{id: article_tag.id}, works.article_tags)

0 commit comments

Comments
 (0)