finland-emojis.zip -> emojis.zip
This commit is contained in:
parent
72d2b34d3b
commit
8e4f043ac7
|
@ -37,8 +37,8 @@ defmodule Pleroma.Emoji.PackTest do
|
|||
test "add emojies from zip file", %{pack: pack} do
|
||||
file = %Plug.Upload{
|
||||
content_type: "application/zip",
|
||||
filename: "finland-emojis.zip",
|
||||
path: Path.absname("test/fixtures/finland-emojis.zip")
|
||||
filename: "emojis.zip",
|
||||
path: Path.absname("test/fixtures/emojis.zip")
|
||||
}
|
||||
|
||||
{:ok, updated_pack} = Pack.add_file(pack, nil, nil, file)
|
||||
|
@ -58,7 +58,7 @@ test "add emojies from zip file", %{pack: pack} do
|
|||
test "returns error when zip file is bad", %{pack: pack} do
|
||||
file = %Plug.Upload{
|
||||
content_type: "application/zip",
|
||||
filename: "finland-emojis.zip",
|
||||
filename: "emojis.zip",
|
||||
path: Path.absname("test/instance_static/emoji/test_pack/blank.png")
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ test "returns error when zip file is bad", %{pack: pack} do
|
|||
test "returns pack when zip file is empty", %{pack: pack} do
|
||||
file = %Plug.Upload{
|
||||
content_type: "application/zip",
|
||||
filename: "finland-emojis.zip",
|
||||
filename: "emojis.zip",
|
||||
path: Path.absname("test/fixtures/empty.zip")
|
||||
}
|
||||
|
||||
|
|
BIN
test/fixtures/emojis.zip
vendored
Normal file
BIN
test/fixtures/emojis.zip
vendored
Normal file
Binary file not shown.
BIN
test/fixtures/finland-emojis.zip
vendored
BIN
test/fixtures/finland-emojis.zip
vendored
Binary file not shown.
|
@ -59,8 +59,8 @@ test "upload zip file with emojies", %{admin_conn: admin_conn} do
|
|||
|> post("/api/pleroma/emoji/packs/test_pack/files", %{
|
||||
file: %Plug.Upload{
|
||||
content_type: "application/zip",
|
||||
filename: "finland-emojis.zip",
|
||||
path: Path.absname("test/fixtures/finland-emojis.zip")
|
||||
filename: "emojis.zip",
|
||||
path: Path.absname("test/fixtures/emojis.zip")
|
||||
}
|
||||
})
|
||||
|> json_response_and_validate_schema(200)
|
||||
|
|
Loading…
Reference in a new issue