aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2020-04-18 00:47:45 +0300
committerRoman Chvanikov <chvanikoff@pm.me>2020-04-18 00:47:45 +0300
commit48f9835f8db67851d0f9d4ad0718f4d2740a7905 (patch)
tree35f292b79f6dc936dd88f80cbe76c9f0ef7f679c /test
parent1cb584cde7089e667554b2315af211b54c77de11 (diff)
downloadpleroma-48f9835f8db67851d0f9d4ad0718f4d2740a7905.tar.gz
cleanup
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!()