diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-09-03 10:34:06 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-09-03 10:34:06 -0500 |
commit | 85446cc30c97a326d90b4ef719ba2e54c2ad423f (patch) | |
tree | caa8e1268cbab2a09e414b85d2ce52b24249d0da /test/tasks/frontend_test.exs | |
parent | 6ce28c409137972ee9b105b9d7ab4a0fd2a0d08b (diff) | |
parent | 9433311923d4b41b057ce6cb1632ff27d46919b4 (diff) | |
download | pleroma-85446cc30c97a326d90b4ef719ba2e54c2ad423f.tar.gz pleroma-85446cc30c97a326d90b4ef719ba2e54c2ad423f.zip |
Merge branch 'develop' into media-preview-proxy
Diffstat (limited to 'test/tasks/frontend_test.exs')
-rw-r--r-- | test/tasks/frontend_test.exs | 9 |
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 |