1
0
Fork 0
forked from mirrors/akkoma

Fix keyword ordering reliance

This commit is contained in:
FloatingGhost 2023-08-06 16:27:15 +01:00
parent c193b4d507
commit 215b550317

View file

@ -29,13 +29,13 @@ test "change/0 converts auto_linker opts for Pleroma.Formatter", %{migration: mi
%{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 @@ test "transform_opts/1 returns a list of compatible opts", %{migration: migratio
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