Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commitb639ecf

Browse files
committed
test(article): fix test
1 parent8d4c8fd commitb639ecf

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

‎lib/groupher_server/cms/delegates/article_curd.ex‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,9 @@ defmodule GroupherServer.CMS.Delegate.ArticleCURD do
450450

451451
defpresult({:ok,%{update_edit_status:result}}),do:{:ok,result}
452452
defpresult({:ok,%{update_article:result}}),do:{:ok,result}
453-
defpresult({:ok,%{update_article_meta:result}}),do:{:ok,result}
453+
# NOTE: for read article, order is import
454454
defpresult({:ok,%{set_viewer_has_states:result}}),do:result|>done()
455+
defpresult({:ok,%{update_article_meta:result}}),do:{:ok,result}
455456

456457
defpresult({:error,:create_article,_result,_steps})do
457458
{:error,[message:"create article",code:ecode(:create_fails)]}

‎test/groupher_server/cms/articles/repo_test.exs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ defmodule GroupherServer.Test.Articles.Repo do
6363
assertuser2.idincreated.meta.viewed_user_ids
6464
end
6565

66+
@tag:wip
6667
test"read repo should contains viewer_has_xxx state",~m(repo_attrs community user user2)ado
6768
{:ok,repo}=CMS.create_article(community,:repo,repo_attrs,user)
6869
{:ok,repo}=CMS.read_article(:repo,repo.id,user)

‎test/groupher_server_web/query/cms/comments/post_comment_test.exs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ defmodule GroupherServer.Test.Query.Comments.PostComment do
3434
}
3535
}
3636
"""
37-
@tag:wip
3837
test"guest user can get comment participators after comment created",
3938
~m(guest_conn post user user2)ado
4039
total_count=5

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp