mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-11 03:39:13 +00:00
Fix keyword ordering reliance
This commit is contained in:
parent
c193b4d507
commit
215b550317
1 changed files with 3 additions and 3 deletions
|
@ -29,13 +29,13 @@ defmodule Pleroma.Repo.Migrations.AutolinkerToLinkifyTest 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: "testing",
|
rel: "testing",
|
||||||
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 new_opts == Pleroma.Config.get(Pleroma.Formatter)
|
||||||
|
@ -67,6 +67,6 @@ defmodule Pleroma.Repo.Migrations.AutolinkerToLinkifyTest do
|
||||||
strip_prefix: false
|
strip_prefix: false
|
||||||
]
|
]
|
||||||
|
|
||||||
assert migration.transform_opts(old_opts) == expected_opts
|
assert Keyword.equal?(migration.transform_opts(old_opts), expected_opts)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue