X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Ftasks%2Femoji_test.exs;h=499f098c2a558264c7bb1287283e28d34136ce88;hb=9c672ecbb5d4477cd16d2139a2cb66d3923ac5c8;hp=f5de3ef0e1d4302a40503f0c4b1a28c8fcfe4a8c;hpb=d2e21fbc968fbbeb98e9860e1dce77443f4b4cd4;p=akkoma diff --git a/test/tasks/emoji_test.exs b/test/tasks/emoji_test.exs index f5de3ef0e..499f098c2 100644 --- a/test/tasks/emoji_test.exs +++ b/test/tasks/emoji_test.exs @@ -73,6 +73,19 @@ defmodule Mix.Tasks.Pleroma.EmojiTest do on_exit(fn -> File.rm_rf!("test/instance_static/emoji/finmoji") end) end + test "install local emoji pack" do + assert capture_io(fn -> + Emoji.run([ + "get-packs", + "local", + "--manifest", + "test/instance_static/local_pack/manifest.json" + ]) + end) =~ "Writing pack.json for" + + on_exit(fn -> File.rm_rf!("test/instance_static/emoji/local") end) + end + test "pack not found" do mock(fn %{