Skip to content

Commit 4dbad7d

Browse files
committed
Fix CI and format
1 parent 586c130 commit 4dbad7d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

test/nimble_totp_test.exs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,14 @@ defmodule NimbleTOTPTest do
195195
test "returns false if the totp_length is under 6 or above 10" do
196196
time = System.os_time(:second)
197197
secret = NimbleTOTP.secret()
198-
assert_raise ArgumentError, "length must be between 6 and 10", fn -> NimbleTOTP.verification_code(secret, time: time, digits: 5) end
199-
assert_raise ArgumentError, "length must be between 6 and 10", fn -> NimbleTOTP.verification_code(secret, time: time, digits: 11) end
198+
199+
assert_raise ArgumentError, "digits must be between 6 and 10", fn ->
200+
NimbleTOTP.verification_code(secret, time: time, digits: 5)
201+
end
202+
203+
assert_raise ArgumentError, "digits must be between 6 and 10", fn ->
204+
NimbleTOTP.verification_code(secret, time: time, digits: 11)
205+
end
200206
end
201207
end
202208

0 commit comments

Comments
 (0)