summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaterina Vaartis <vaartis@kotobank.ch>2023-03-30 19:25:35 +0300
committerEkaterina Vaartis <vaartis@kotobank.ch>2023-03-30 19:25:35 +0300
commit6a63dced4a567e0ba84c3c1e796eff93ba015255 (patch)
tree475d49d74def7d62d4f17d789d0ad1460c161218
parent3037d2780c735846bc82994f620c970b104362a7 (diff)
downloadpleroma-6a63dced4a567e0ba84c3c1e796eff93ba015255.tar.gz
pleroma-6a63dced4a567e0ba84c3c1e796eff93ba015255.zip
Fix tests for frontend installation
-rw-r--r--lib/pleroma/web/api_spec/operations/admin/frontend_operation.ex2
-rw-r--r--test/pleroma/web/admin_api/controllers/frontend_controller_test.exs1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/api_spec/operations/admin/frontend_operation.ex b/lib/pleroma/web/api_spec/operations/admin/frontend_operation.ex
index 89b1c474c..3e85c44d2 100644
--- a/lib/pleroma/web/api_spec/operations/admin/frontend_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/admin/frontend_operation.ex
@@ -51,7 +51,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.FrontendOperation do
name: %Schema{type: :string},
git: %Schema{type: :string, format: :uri, nullable: true},
build_url: %Schema{type: :string, format: :uri, nullable: true},
- ref: %Schema{type: :string},
+ ref: %Schema{type: :string, nullable: true},
installed: %Schema{type: :boolean},
installed_refs: %Schema{type: :array, items: %Schema{type: :string}}
}
diff --git a/test/pleroma/web/admin_api/controllers/frontend_controller_test.exs b/test/pleroma/web/admin_api/controllers/frontend_controller_test.exs
index 38a23b224..0d1a4999e 100644
--- a/test/pleroma/web/admin_api/controllers/frontend_controller_test.exs
+++ b/test/pleroma/web/admin_api/controllers/frontend_controller_test.exs
@@ -89,6 +89,7 @@ defmodule Pleroma.Web.AdminAPI.FrontendControllerTest do
"build_url" => "http://gensokyo.2hu/builds/${ref}",
"git" => nil,
"installed" => true,
+ "installed_refs" => ["fantasy"],
"name" => "pleroma",
"ref" => "fantasy"
}