Merge branch 'cycles-router-api-routes' into 'develop'
[akkoma] / test / pleroma / web / plugs / frontend_static_plug_test.exs
index 9d59d3f8ea8ee3d30e212d212cfae91776fd144b..4152cdefe90ebd572254a5954dc98aeff768f33e 100644 (file)
@@ -76,6 +76,8 @@ defmodule Pleroma.Web.Plugs.FrontendStaticPlugTest do
   end
 
   test "api routes are detected correctly" do
+    # If this test fails we have probably added something
+    # new that should be in /api/ instead
     expected_routes = [
       "api",
       "main",
@@ -96,10 +98,11 @@ defmodule Pleroma.Web.Plugs.FrontendStaticPlugTest do
       "auth",
       "embed",
       "proxy",
+      "test",
       "user_exists",
       "check_password"
     ]
 
-    assert expected_routes == Pleroma.Web.get_api_routes()
+    assert expected_routes == Pleroma.Web.Router.get_api_routes()
   end
 end