Skip to content

Commit 97b4959

Browse files
committed
fix(test): Fixed errors with test not finding GuardianRedis.Repo; Also fixed issue with username_to_user_id passing an empty map
1 parent 6599a13 commit 97b4959

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/epochtalk_server/models/mention_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ defmodule Test.EpochtalkServer.Models.Mention do
2929
assert_raise FunctionClauseError,
3030
~r/no function clause matching/,
3131
fn ->
32-
Mention.username_to_user_id(%{}, attrs)
33-
end
32+
Mention.username_to_user_id(%{id: nil, roles: nil}, attrs)
33+
end
3434
end
3535

3636
test "given an invalid thread id, succeeds", %{users: %{user: user}} do

0 commit comments

Comments
 (0)