Add description field to OtpType
This commit is contained in:
parent
469451b7b7
commit
cfb50276bc
4 changed files with 43 additions and 14 deletions
|
|
@ -36,4 +36,10 @@ class OtpTypeTest: XCTestCase {
|
|||
XCTAssertEqual(OtpType(name: ""), .none)
|
||||
XCTAssertEqual(OtpType(name: "something"), .none)
|
||||
}
|
||||
|
||||
func testDescription() {
|
||||
XCTAssertEqual(OtpType(name: "totp").description, "time-based")
|
||||
XCTAssertEqual(OtpType(name: "hotp").description, "HMAC-based")
|
||||
XCTAssertEqual(OtpType(name: nil).description, "none")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue