Browse Source

finland-emojis.zip -> emojis.zip

fix/2189-remote-user-deletion
Maksim Pechnikov 3 years ago
parent
commit
8e4f043ac7
4 changed files with 6 additions and 6 deletions
  1. +4
    -4
      test/emoji/pack_test.exs
  2. BIN
      test/fixtures/emojis.zip
  3. BIN
      test/fixtures/finland-emojis.zip
  4. +2
    -2
      test/web/pleroma_api/controllers/emoji_file_controller_test.exs

+ 4
- 4
test/emoji/pack_test.exs View File

@@ -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 View File


BIN
test/fixtures/finland-emojis.zip View File


+ 2
- 2
test/web/pleroma_api/controllers/emoji_file_controller_test.exs View File

@@ -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…
Cancel
Save