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

Commit 7f1332b

Browse files
committed
refactor(delivery): fix test
1 parent 52e13bc commit 7f1332b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/groupher_server/cms/hooks/notify_post_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ defmodule GroupherServer.Test.CMS.Hooks.NotifyPost do
134134
end
135135

136136
describe "[comment notify]" do
137-
@tag :wip
137+
@tag :wip2
138138
test "post author should get notify after some one comment on it", ~m(user2 post)a do
139139
{:ok, post} = preload_author(post)
140140

test/groupher_server/delivery/notification_test.exs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ defmodule GroupherServer.Test.Delivery.Notification do
5555
assert user3 |> user_exist_in?(notify.from_users)
5656
end
5757

58-
@tag :wip
58+
@tag :wip2
5959
test "different notify should not be merged", ~m(user user2 user3 notify_attrs)a do
6060
{:ok, _} = Delivery.send(:notify, notify_attrs, user2)
6161
notify_attrs = notify_attrs |> Map.put(:action, :collect)
@@ -172,6 +172,7 @@ defmodule GroupherServer.Test.Delivery.Notification do
172172
end
173173

174174
describe "basic thread support" do
175+
@tag :wip
175176
test "support upvote", ~m(post user user2 notify_attrs)a do
176177
notify_attrs
177178
|> Map.merge(%{
@@ -200,6 +201,7 @@ defmodule GroupherServer.Test.Delivery.Notification do
200201
notify_attrs
201202
|> Map.merge(%{
202203
type: :post,
204+
article_id: nil,
203205
title: post.title,
204206
action: :upvote,
205207
user_id: user.id

0 commit comments

Comments
 (0)