summaryrefslogtreecommitdiff
path: root/test/tasks/frontend_test.exs
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2020-09-11 14:13:38 -0500
committerAlex Gleason <alex@alexgleason.me>2020-09-11 14:13:38 -0500
commit9733c9d06563a92e4c58ac906c5f98b617b9e731 (patch)
treeabbf03ddb917c1c203cb79eab64647d3af541fff /test/tasks/frontend_test.exs
parentdfb831ca39db3098d6d585448a6ff8e938e51e8c (diff)
parent9fb88c814ddadd9138ef29550a856938491a1ca4 (diff)
downloadpleroma-9733c9d06563a92e4c58ac906c5f98b617b9e731.tar.gz
pleroma-9733c9d06563a92e4c58ac906c5f98b617b9e731.zip
Merge remote-tracking branch 'upstream/develop' into chat-moderation
Diffstat (limited to 'test/tasks/frontend_test.exs')
-rw-r--r--test/tasks/frontend_test.exs9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/tasks/frontend_test.exs b/test/tasks/frontend_test.exs
index 0ca2b9a28..022ae51be 100644
--- a/test/tasks/frontend_test.exs
+++ b/test/tasks/frontend_test.exs
@@ -48,11 +48,18 @@ defmodule Pleroma.FrontendTest do
}
})
+ folder = Path.join([@dir, "frontends", "pleroma", "fantasy"])
+ previously_existing = Path.join([folder, "temp"])
+ File.mkdir_p!(folder)
+ File.write!(previously_existing, "yey")
+ assert File.exists?(previously_existing)
+
capture_io(fn ->
Frontend.run(["install", "pleroma", "--file", "test/fixtures/tesla_mock/frontend.zip"])
end)
- assert File.exists?(Path.join([@dir, "frontends", "pleroma", "fantasy", "test.txt"]))
+ assert File.exists?(Path.join([folder, "test.txt"]))
+ refute File.exists?(previously_existing)
end
test "it downloads and unzips unknown frontends" do