Skip to content
Snippets Groups Projects
Commit 119d69ff authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Update deprecations

parent ec57370e
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!74Messenger example - clean up
......@@ -55,9 +55,9 @@ final class ContactFeatureTests: XCTestCase {
var xxContact: XXClient.Contact = .unimplemented("contact-data".data(using: .utf8)!)
xxContact.getFactsFromContact.run = { _ in
[
Fact(fact: "contact-username", type: 0),
Fact(fact: "contact-email", type: 1),
Fact(fact: "contact-phone", type: 2),
Fact(type: .username, value: "contact-username"),
Fact(type: .email, value: "contact-email"),
Fact(type: .phone, value: "contact-phone"),
]
}
......
......@@ -370,7 +370,7 @@ final class HomeFeatureTests: XCTestCase {
}
XCTAssertNoDifference(dbDidFetchContacts, [.init(id: ["contact-id".data(using: .utf8)!])])
XCTAssertNoDifference(udDidPermanentDeleteAccount, [Fact(fact: "MyUsername", type: 0)])
XCTAssertNoDifference(udDidPermanentDeleteAccount, [Fact(type: .username, value: "MyUsername")])
XCTAssertNoDifference(messengerDidDestroy, 1)
XCTAssertNoDifference(didRemoveDB, 1)
......
......@@ -63,7 +63,7 @@ final class RegisterFeatureTests: XCTestCase {
bgQueue.advance()
XCTAssertNoDifference(messengerDidRegisterUsername, ["NewUser"])
XCTAssertNoDifference(didSetFactsOnContact, [[Fact(fact: "NewUser", type: 0)]])
XCTAssertNoDifference(didSetFactsOnContact, [[Fact(type: .username, value: "NewUser")]])
XCTAssertNoDifference(dbDidSaveContact, [
XXModels.Contact(
id: "contact-id".data(using: .utf8)!,
......
......@@ -63,9 +63,9 @@ final class SendRequestFeatureTests: XCTestCase {
var myContact: XXClient.Contact = .unimplemented("my-contact-data".data(using: .utf8)!)
let myFacts = [
Fact(fact: "my-username", type: 0),
Fact(fact: "my-email", type: 1),
Fact(fact: "my-phone", type: 2),
Fact(type: .username, value: "my-username"),
Fact(type: .email, value: "my-email"),
Fact(type: .phone, value: "my-phone"),
]
myContact.getFactsFromContact.run = { _ in myFacts }
......@@ -142,9 +142,9 @@ final class SendRequestFeatureTests: XCTestCase {
var myContact: XXClient.Contact = .unimplemented("my-contact-data".data(using: .utf8)!)
let myFacts = [
Fact(fact: "my-username", type: 0),
Fact(fact: "my-email", type: 1),
Fact(fact: "my-phone", type: 2),
Fact(type: .username, value: "my-username"),
Fact(type: .email, value: "my-email"),
Fact(type: .phone, value: "my-phone"),
]
myContact.getFactsFromContact.run = { _ in myFacts }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment