aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/tasks/frontend_test.exs10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/tasks/frontend_test.exs b/test/tasks/frontend_test.exs
index 410b3d2e7..2f9458f89 100644
--- a/test/tasks/frontend_test.exs
+++ b/test/tasks/frontend_test.exs
@@ -25,12 +25,10 @@ defmodule Mix.Tasks.Pleroma.FrontendTest do
setup do
mock_global(fn
%{method: :get, url: "https://git.pleroma.social/api/v4/projects/" <> rest} ->
- case String.ends_with?(rest, "repository/branches") do
- true ->
- "test/fixtures/tesla_mock/gitlab-api-pleroma-fe-branches.json"
-
- false ->
- "test/fixtures/tesla_mock/gitlab-api-pleroma-fe-releases.json"
+ if String.ends_with?(rest, "repository/branches") do
+ "test/fixtures/tesla_mock/gitlab-api-pleroma-fe-branches.json"
+ else
+ "test/fixtures/tesla_mock/gitlab-api-pleroma-fe-releases.json"
end
|> Path.absname()
|> File.read!()