Skip to content

Commit

Permalink
test(thread-controller): update test using format
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsey committed Aug 2, 2024
1 parent 88ececf commit e84987b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 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,14 @@ 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, global_mod_user: global_mod_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 Down

0 comments on commit e84987b

Please sign in to comment.