Mix Task Frontend test: Expand.
This commit is contained in:
parent
de00a4c0f1
commit
50d5bdfd31
|
@ -0,0 +1 @@
|
||||||
|
this is a text file
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
this is a text file
|
|
@ -24,13 +24,12 @@ test "it downloads and unzips a known frontend" do
|
||||||
"pleroma" => %{
|
"pleroma" => %{
|
||||||
"ref" => "fantasy",
|
"ref" => "fantasy",
|
||||||
"name" => "pleroma",
|
"name" => "pleroma",
|
||||||
"build_url" => "http://gensokyo.2hu/builds/${ref}",
|
"build_url" => "http://gensokyo.2hu/builds/${ref}"
|
||||||
"build_dir" => ""
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
Tesla.Mock.mock(fn %{url: "http://gensokyo.2hu/builds/fantasy"} ->
|
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)
|
end)
|
||||||
|
|
||||||
capture_io(fn ->
|
capture_io(fn ->
|
||||||
|
|
Loading…
Reference in New Issue