mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-14 03:24:04 +00:00
12 lines
271 B
Elixir
12 lines
271 B
Elixir
|
defmodule Pleroma.MFA.BackupCodesTest do
|
||
|
use Pleroma.DataCase
|
||
|
|
||
|
alias Pleroma.MFA.BackupCodes
|
||
|
|
||
|
test "generate backup codes" do
|
||
|
codes = BackupCodes.generate(number_of_codes: 2, length: 4)
|
||
|
|
||
|
assert [<<_::bytes-size(4)>>, <<_::bytes-size(4)>>] = codes
|
||
|
end
|
||
|
end
|