finland-emojis.zip -> emojis.zip
authorMaksim Pechnikov <parallel588@gmail.com>
Tue, 22 Sep 2020 18:58:30 +0000 (21:58 +0300)
committerMaksim Pechnikov <parallel588@gmail.com>
Tue, 22 Sep 2020 18:58:30 +0000 (21:58 +0300)
test/emoji/pack_test.exs
test/fixtures/emojis.zip [new file with mode: 0644]
test/fixtures/finland-emojis.zip [deleted file]
test/web/pleroma_api/controllers/emoji_file_controller_test.exs

index 3ec991f0fe89a06a38e1d50729b9965bc0d22d0f..70d1eaa1b638d58df8891892be48018a751fa1b0 100644 (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")
     }
 
diff --git a/test/fixtures/emojis.zip b/test/fixtures/emojis.zip
new file mode 100644 (file)
index 0000000..d7fc473
Binary files /dev/null and b/test/fixtures/emojis.zip differ
diff --git a/test/fixtures/finland-emojis.zip b/test/fixtures/finland-emojis.zip
deleted file mode 100644 (file)
index de7242e..0000000
Binary files a/test/fixtures/finland-emojis.zip and /dev/null differ
index 827a4c3740f14b2930947acef76a80a3cfe12f3e..39b4e1dacd376af4c0608ab72784cc71155e4ccd 100644 (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)