Skip to content

Commit 4a44053

Browse files
committed
fix failing tests
1 parent 27880ba commit 4a44053

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/algora/accounts_test.exs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ defmodule Algora.AccountsTest do
1414
"name" => "Github User"
1515
}
1616

17-
{:ok, user} = Accounts.register_github_user(email, info, [email], "token123")
18-
{:ok, user_again} = Accounts.register_github_user(email, info, [email], "token123")
17+
{:ok, user} = Accounts.register_github_user(nil, email, info, [email], "token123")
18+
{:ok, user_again} = Accounts.register_github_user(user, email, info, [email], "token123")
1919

20-
assert_activity_names([:identity_created])
20+
assert user.id == user_again.id
21+
assert_activity_names([:identity_created, :identity_created])
2122
assert_activity_names_for_user(user.id, [:identity_created])
2223
assert_activity_names_for_user(user_again.id, [:identity_created])
2324
end

0 commit comments

Comments
 (0)