fix tests

This commit is contained in:
Maksim Pechnikov 2020-11-18 09:58:51 +03:00
parent 3c00af82dc
commit 9c5d1cb9ed
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ defmodule Pleroma.Web.PleromaAPI.EmojiPackController do
|> json(%{error: "pack name cannot be empty"})
{:error, error, _} ->
error_message = add_posix_error("Couldn't delete the #{name} pack", error)
error_message = add_posix_error("Couldn't delete the `#{name}` pack", error)
conn
|> put_status(:internal_server_error)

View File

@ -471,7 +471,7 @@ defmodule Pleroma.Web.PleromaAPI.EmojiPackControllerTest do
|> delete("/api/pleroma/emoji/pack?name=test_emoji_pack")
|> json_response_and_validate_schema(500) == %{
"error" =>
"Couldn't delete the pack test_emoji_pack (POSIX error: Permission denied)"
"Couldn't delete the `test_emoji_pack` pack (POSIX error: Permission denied)"
}
end
after