Skip to content

Commit

Permalink
test(thread-controller): add global mod user return to setup method f…
Browse files Browse the repository at this point in the history
…or use in tests
  • Loading branch information
akinsey committed Aug 1, 2024
1 parent d9939e7 commit 81b91d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/epochtalk_server_web/controllers/thread_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Test.EpochtalkServerWeb.Controllers.Thread do
alias EpochtalkServerWeb.CustomErrors.InvalidPermission
alias EpochtalkServer.Models.User

setup %{users: %{user: user, admin_user: admin_user, super_admin_user: super_admin_user}} do
setup %{users: %{user: user, admin_user: admin_user, super_admin_user: super_admin_user, global_mod_user: global_mod_user}} do
board = insert(:board)
admin_board = insert(:board, viewable_by: 1)
super_admin_board = insert(:board, viewable_by: 1, postable_by: 0)
Expand All @@ -31,6 +31,7 @@ defmodule Test.EpochtalkServerWeb.Controllers.Thread do
{
:ok,
user: user,
global_mod_user: global_mod_user,
board: board,
admin_board: admin_board,
super_admin_board: super_admin_board,
Expand Down

0 comments on commit 81b91d4

Please sign in to comment.