Tweak Password class
This commit is contained in:
parent
3cd8df310c
commit
d4d8d7267a
3 changed files with 12 additions and 14 deletions
|
|
@ -167,7 +167,7 @@ class PasswordTest: XCTestCase {
|
|||
XCTAssertEqual(password.additionsPlainText, additions)
|
||||
|
||||
XCTAssertEqual(password.otpType, OtpType.totp)
|
||||
XCTAssertNotNil(password.getOtp())
|
||||
XCTAssertNotNil(password.currentOtp)
|
||||
}
|
||||
|
||||
func testFirstLineIsOtpToken() {
|
||||
|
|
@ -182,7 +182,7 @@ class PasswordTest: XCTestCase {
|
|||
XCTAssertNil(password.login)
|
||||
|
||||
XCTAssertEqual(password.otpType, OtpType.totp)
|
||||
XCTAssertNotNil(password.getOtp())
|
||||
XCTAssertNotNil(password.currentOtp)
|
||||
}
|
||||
|
||||
func testWrongOtpToken() {
|
||||
|
|
@ -194,7 +194,7 @@ class PasswordTest: XCTestCase {
|
|||
XCTAssertTrue(password.additionsPlainText.isEmpty)
|
||||
|
||||
XCTAssertEqual(password.otpType, OtpType.none)
|
||||
XCTAssertNil(password.getOtp())
|
||||
XCTAssertNil(password.currentOtp)
|
||||
}
|
||||
|
||||
func testEmptyMultilineValues() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue