get-packs for local generated pack

This commit is contained in:
Alexander Strizhakov 2020-05-28 19:41:34 +03:00
commit ae05792d2a
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
4 changed files with 47 additions and 17 deletions

View file

@ -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
%{