mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-18 07:48:19 +00:00
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 @@ defmodule Pleroma.Emoji.PackTest 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 @@ defmodule Pleroma.Emoji.PackTest 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 @@ defmodule Pleroma.Web.PleromaAPI.EmojiFileControllerTest 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