diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-05-28 19:41:34 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-05-28 19:41:34 +0300 |
commit | ae05792d2a825dbb7d53a7f5a079548ae8310c63 (patch) | |
tree | 9af5363def815fe5ae05c851238de3c3d9f41c6d /test/tasks | |
parent | 089d72d2e6bb1f3c3674162c5c9a7c4988241358 (diff) | |
download | pleroma-ae05792d2a825dbb7d53a7f5a079548ae8310c63.tar.gz |
get-packs for local generated pack
Diffstat (limited to 'test/tasks')
-rw-r--r-- | test/tasks/emoji_test.exs | 13 |
1 files changed, 13 insertions, 0 deletions
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 %{ |