Skip to content

Commit 6629cc8

Browse files
author
Joris Timmerman
committed
Lint stuff
1 parent 380f696 commit 6629cc8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Example/Tests/Specs/Keychain/KeychainSpec.swift

+7-7
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ extension Keys {
1717
}
1818

1919
private struct TestCodable: Codable, Equatable {
20-
var id: String
20+
var identifier: String
2121
var timestamp: Date
22-
init(id: String, timestamp: Date) {
23-
self.id = id
22+
init(identifier: String, timestamp: Date) {
23+
self.identifier = identifier
2424
self.timestamp = timestamp
2525
}
2626
}
@@ -50,16 +50,16 @@ class KeychainSpec: QuickSpec {
5050
}
5151

5252
it("should be able to write a codable value to the keychain") {
53-
let value = TestCodable(id: "123",
53+
let value = TestCodable(identifier: "123",
5454
timestamp: Date(timeIntervalSince1970: 2000))
5555
keychain[.testKey] = value
5656
expect(keychain[.testKey]) == value
5757
}
5858

5959
it("Should override a codable value to the keychain") {
60-
let value1 = TestCodable(id: "123",
60+
let value1 = TestCodable(identifier: "123",
6161
timestamp: Date(timeIntervalSince1970: 2000))
62-
let value2 = TestCodable(id: "456",
62+
let value2 = TestCodable(identifier: "456",
6363
timestamp: Date(timeIntervalSince1970: 3000))
6464
keychain[.testKey] = value1
6565
keychain[.testKey] = value2
@@ -68,7 +68,7 @@ class KeychainSpec: QuickSpec {
6868
}
6969

7070
it("should be able to delete a codable value from the keychain") {
71-
let value = TestCodable(id: "123",
71+
let value = TestCodable(identifier: "123",
7272
timestamp: Date(timeIntervalSince1970: 2000))
7373
keychain[.testKey] = value
7474
expect(keychain[.testKey]).toNot(beNil())

0 commit comments

Comments
 (0)