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 @@ test "it downloads and unzips a known frontend" 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 New Issue
Block a user