+
+ assert admin_conn
+ |> put_req_header("content-type", "multipart/form-data")
+ |> post("/api/v1/pleroma/emoji/packs/download", %{
+ url: "https://example.com",
+ name: "test with spaces",
+ as: "test with spaces"
+ })
+ |> json_response_and_validate_schema(200) == "ok"
+
+ assert File.exists?("#{@emoji_path}/test with spaces/pack.json")
+ assert File.exists?("#{@emoji_path}/test with spaces/blank.png")