Skip to content

Commit

Permalink
fix @sourceleve-bot issues in #110
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Sep 12, 2020
1 parent 5c12cf6 commit 607f775
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/auth_web/controllers/app_controller_test.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule AuthWeb.AppControllerTest do
use AuthWeb.ConnCase

alias Auth.{App, Role}
alias Auth.App
alias Auth.Role

@create_attrs %{
desc: "some description",
Expand Down Expand Up @@ -199,7 +199,6 @@ defmodule AuthWeb.AppControllerTest do
last = List.last(roles2)
assert last.name == admin_role.name


# login as non-admin person
conn2 = non_admin_login(conn)

Expand Down Expand Up @@ -234,7 +233,7 @@ defmodule AuthWeb.AppControllerTest do
should_be_empty = Enum.filter(json, fn r ->
Map.get(r, "name") == admin_role.name
end)
assert length(should_be_empty) == 0
assert should_be_empty == []
end
end
end

0 comments on commit 607f775

Please sign in to comment.