Fix test
authorMaxim Filippov <colixer@gmail.com>
Sun, 17 Mar 2019 10:29:28 +0000 (13:29 +0300)
committerMaxim Filippov <colixer@gmail.com>
Sun, 17 Mar 2019 10:29:28 +0000 (13:29 +0300)
test/web/admin_api/admin_api_controller_test.exs

index e50f0edde1e4a98e34651c3a6d18dc435988560f..0aab7f26257490fd612317491323587458c77a26 100644 (file)
@@ -494,14 +494,6 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
                "count" => 2,
                "page_size" => 50,
                "users" => [
-                 %{
-                   "deactivated" => admin.info.deactivated,
-                   "id" => admin.id,
-                   "nickname" => admin.nickname,
-                   "roles" => %{"admin" => true, "moderator" => false},
-                   "local" => true,
-                   "tags" => []
-                 },
                  %{
                    "deactivated" => user.info.deactivated,
                    "id" => user.id,
@@ -509,6 +501,14 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
                    "roles" => %{"admin" => false, "moderator" => false},
                    "local" => true,
                    "tags" => []
+                 },
+                 %{
+                   "deactivated" => admin.info.deactivated,
+                   "id" => admin.id,
+                   "nickname" => admin.nickname,
+                   "roles" => %{"admin" => true, "moderator" => false},
+                   "local" => true,
+                   "tags" => []
                  }
                ]
              }