Fix tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
1ee5d5584d
commit
e44bcd1106
1 changed files with 7 additions and 3 deletions
|
@ -137,9 +137,13 @@ test "marks notifications as read", %{conn: conn} do
|
|||
token = insert(:oauth_token, user: user1, scopes: ["write:statuses"])
|
||||
|
||||
user2 = insert(:user)
|
||||
{:ok, _activity1} = CommonAPI.post(user2, %{status: "hi @#{user1.nickname}"})
|
||||
{:ok, _activity2} = CommonAPI.post(user2, %{status: "hi @#{user1.nickname}"})
|
||||
{:ok, _activity3} = CommonAPI.post(user2, %{status: "HIE @#{user1.nickname}"})
|
||||
{:ok, activity1} = CommonAPI.post(user2, %{status: "hi @#{user1.nickname}"})
|
||||
{:ok, activity2} = CommonAPI.post(user2, %{status: "hi @#{user1.nickname}"})
|
||||
{:ok, activity3} = CommonAPI.post(user2, %{status: "HIE @#{user1.nickname}"})
|
||||
|
||||
Notification.create_notifications(activity1)
|
||||
Notification.create_notifications(activity2)
|
||||
Notification.create_notifications(activity3)
|
||||
|
||||
[notification3, notification2, notification1] = Notification.for_user(user1, %{limit: 3})
|
||||
|
||||
|
|
Loading…
Reference in a new issue