Mix Task Frontend test: Expand.
authorlain <lain@soykaf.club>
Fri, 7 Aug 2020 14:03:06 +0000 (16:03 +0200)
committerlain <lain@soykaf.club>
Fri, 7 Aug 2020 14:03:06 +0000 (16:03 +0200)
test/fixtures/tesla_mock/dist/test.txt [new file with mode: 0644]
test/fixtures/tesla_mock/frontend_dist.zip [new file with mode: 0644]
test/fixtures/test.txt [new file with mode: 0644]
test/tasks/frontend_test.exs

diff --git a/test/fixtures/tesla_mock/dist/test.txt b/test/fixtures/tesla_mock/dist/test.txt
new file mode 100644 (file)
index 0000000..e9ea42a
--- /dev/null
@@ -0,0 +1 @@
+this is a text file
diff --git a/test/fixtures/tesla_mock/frontend_dist.zip b/test/fixtures/tesla_mock/frontend_dist.zip
new file mode 100644 (file)
index 0000000..20d7952
Binary files /dev/null and b/test/fixtures/tesla_mock/frontend_dist.zip differ
diff --git a/test/fixtures/test.txt b/test/fixtures/test.txt
new file mode 100644 (file)
index 0000000..e9ea42a
--- /dev/null
@@ -0,0 +1 @@
+this is a text file
index 6a9a931eb5d36889a13c4507c1e13e3ee87603de..0ca2b9a28038f893d2b321d463a6bc41cad26b8b 100644 (file)
@@ -24,13 +24,12 @@ defmodule Pleroma.FrontendTest do
       "pleroma" => %{
         "ref" => "fantasy",
         "name" => "pleroma",
-        "build_url" => "http://gensokyo.2hu/builds/${ref}",
-        "build_dir" => ""
+        "build_url" => "http://gensokyo.2hu/builds/${ref}"
       }
     })
 
     Tesla.Mock.mock(fn %{url: "http://gensokyo.2hu/builds/fantasy"} ->
-      %Tesla.Env{status: 200, body: File.read!("test/fixtures/tesla_mock/frontend.zip")}
+      %Tesla.Env{status: 200, body: File.read!("test/fixtures/tesla_mock/frontend_dist.zip")}
     end)
 
     capture_io(fn ->