finland-emojis.zip -> emojis.zip

This commit is contained in:
Maksim Pechnikov 2020-09-22 21:58:30 +03:00
parent 72d2b34d3b
commit 8e4f043ac7
4 changed files with 6 additions and 6 deletions

View file

@ -37,8 +37,8 @@ defmodule Pleroma.Emoji.PackTest do
test "add emojies from zip file", %{pack: pack} do test "add emojies from zip file", %{pack: pack} do
file = %Plug.Upload{ file = %Plug.Upload{
content_type: "application/zip", content_type: "application/zip",
filename: "finland-emojis.zip", filename: "emojis.zip",
path: Path.absname("test/fixtures/finland-emojis.zip") path: Path.absname("test/fixtures/emojis.zip")
} }
{:ok, updated_pack} = Pack.add_file(pack, nil, nil, file) {:ok, updated_pack} = Pack.add_file(pack, nil, nil, file)
@ -58,7 +58,7 @@ defmodule Pleroma.Emoji.PackTest do
test "returns error when zip file is bad", %{pack: pack} do test "returns error when zip file is bad", %{pack: pack} do
file = %Plug.Upload{ file = %Plug.Upload{
content_type: "application/zip", content_type: "application/zip",
filename: "finland-emojis.zip", filename: "emojis.zip",
path: Path.absname("test/instance_static/emoji/test_pack/blank.png") path: Path.absname("test/instance_static/emoji/test_pack/blank.png")
} }
@ -68,7 +68,7 @@ defmodule Pleroma.Emoji.PackTest do
test "returns pack when zip file is empty", %{pack: pack} do test "returns pack when zip file is empty", %{pack: pack} do
file = %Plug.Upload{ file = %Plug.Upload{
content_type: "application/zip", content_type: "application/zip",
filename: "finland-emojis.zip", filename: "emojis.zip",
path: Path.absname("test/fixtures/empty.zip") path: Path.absname("test/fixtures/empty.zip")
} }

BIN
test/fixtures/emojis.zip vendored Normal file

Binary file not shown.

Binary file not shown.

View file

@ -59,8 +59,8 @@ defmodule Pleroma.Web.PleromaAPI.EmojiFileControllerTest do
|> post("/api/pleroma/emoji/packs/test_pack/files", %{ |> post("/api/pleroma/emoji/packs/test_pack/files", %{
file: %Plug.Upload{ file: %Plug.Upload{
content_type: "application/zip", content_type: "application/zip",
filename: "finland-emojis.zip", filename: "emojis.zip",
path: Path.absname("test/fixtures/finland-emojis.zip") path: Path.absname("test/fixtures/emojis.zip")
} }
}) })
|> json_response_and_validate_schema(200) |> json_response_and_validate_schema(200)