mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-08 09:24:18 +00:00
Mix Task Frontend test: Expand.
This commit is contained in:
parent
de00a4c0f1
commit
50d5bdfd31
1
test/fixtures/tesla_mock/dist/test.txt
vendored
Normal file
1
test/fixtures/tesla_mock/dist/test.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
this is a text file
|
BIN
test/fixtures/tesla_mock/frontend_dist.zip
vendored
Normal file
BIN
test/fixtures/tesla_mock/frontend_dist.zip
vendored
Normal file
Binary file not shown.
1
test/fixtures/test.txt
vendored
Normal file
1
test/fixtures/test.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
this is a text 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 ->
|
||||
|
|
Loading…
Reference in a new issue