Use is_binary instead of is_bitstring for restricted nicknames tests

This commit is contained in:
Sean King 2022-07-09 23:39:35 -06:00
parent 6e7b919637
commit 3cf6c2b7ea
No known key found for this signature in database
GPG Key ID: 510C52BACD6E7257
1 changed files with 2 additions and 2 deletions

View File

@ -621,7 +621,7 @@ test "it restricts certain nicknames" do
clear_config([User, :restricted_nicknames], ["about"])
[restricted_name | _] = Pleroma.Config.get([User, :restricted_nicknames])
assert is_bitstring(restricted_name)
assert is_binary(restricted_name)
params =
@full_user_data
@ -636,7 +636,7 @@ test "it is case-insensitive when restricting nicknames" do
clear_config([User, :restricted_nicknames], ["about"])
[restricted_name | _] = Pleroma.Config.get([User, :restricted_nicknames])
assert is_bitstring(restricted_name)
assert is_binary(restricted_name)
restricted_upcase_name = String.upcase(restricted_name)