forked from AkkomaGang/akkoma
Another keyword.equal? check
This commit is contained in:
parent
215b550317
commit
7956cfb091
1 changed files with 4 additions and 4 deletions
|
@ -26,16 +26,16 @@ test "change/0 converts a map into a list", %{migration: migration} do
|
||||||
|
|
||||||
%{value: new_opts} = ConfigDB.get_by_params(%{group: :pleroma, key: Pleroma.Formatter})
|
%{value: new_opts} = ConfigDB.get_by_params(%{group: :pleroma, key: Pleroma.Formatter})
|
||||||
|
|
||||||
assert new_opts == [
|
assert Keyword.equal?(new_opts,
|
||||||
class: false,
|
class: false,
|
||||||
extra: true,
|
extra: true,
|
||||||
new_window: false,
|
new_window: false,
|
||||||
rel: "F",
|
rel: "F",
|
||||||
strip_prefix: false
|
strip_prefix: false
|
||||||
]
|
)
|
||||||
|
|
||||||
clear_config(Pleroma.Formatter, new_opts)
|
clear_config(Pleroma.Formatter, new_opts)
|
||||||
assert new_opts == Pleroma.Config.get(Pleroma.Formatter)
|
assert Keyword.equal?(new_opts, Pleroma.Config.get(Pleroma.Formatter))
|
||||||
|
|
||||||
{text, _mentions, []} =
|
{text, _mentions, []} =
|
||||||
Pleroma.Formatter.linkify(
|
Pleroma.Formatter.linkify(
|
||||||
|
@ -61,7 +61,7 @@ test "change/0 skips if Pleroma.Formatter config is already a list", %{migration
|
||||||
|
|
||||||
%{value: new_opts} = ConfigDB.get_by_params(%{group: :pleroma, key: Pleroma.Formatter})
|
%{value: new_opts} = ConfigDB.get_by_params(%{group: :pleroma, key: Pleroma.Formatter})
|
||||||
|
|
||||||
assert new_opts == opts
|
assert Keyword.equal?(new_opts, opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "change/0 skips if Pleroma.Formatter is empty", %{migration: migration} do
|
test "change/0 skips if Pleroma.Formatter is empty", %{migration: migration} do
|
||||||
|
|
Loading…
Reference in a new issue