aboutsummaryrefslogtreecommitdiff
path: root/test/tasks/emoji_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-05-28 17:08:30 +0000
committerlain <lain@soykaf.club>2020-05-28 17:08:30 +0000
commit1d30608e204b8c9a0afe817bbe1261b1a9af9240 (patch)
treeb4da1086360a3bd4de4b56caaf7093d679cb5b31 /test/tasks/emoji_test.exs
parentf6ddf0cc50ddb7b95e3387fd68a8ba1c9f271d2c (diff)
parentae05792d2a825dbb7d53a7f5a079548ae8310c63 (diff)
downloadpleroma-1d30608e204b8c9a0afe817bbe1261b1a9af9240.tar.gz
Merge branch 'fix/1557-gets-local-pack' into 'develop'
get-packs for local generated pack Closes #1557 See merge request pleroma/pleroma!2604
Diffstat (limited to 'test/tasks/emoji_test.exs')
-rw-r--r--test/tasks/emoji_test.exs13
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
%{