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
This commit is part of merge request !74. Comments created here will be created in the context of that merge request.
...@@ -55,9 +55,9 @@ final class ContactFeatureTests: XCTestCase { ...@@ -55,9 +55,9 @@ final class ContactFeatureTests: XCTestCase {
var xxContact: XXClient.Contact = .unimplemented("contact-data".data(using: .utf8)!) var xxContact: XXClient.Contact = .unimplemented("contact-data".data(using: .utf8)!)
xxContact.getFactsFromContact.run = { _ in xxContact.getFactsFromContact.run = { _ in
[ [
Fact(fact: "contact-username", type: 0), Fact(type: .username, value: "contact-username"),
Fact(fact: "contact-email", type: 1), Fact(type: .email, value: "contact-email"),
Fact(fact: "contact-phone", type: 2), Fact(type: .phone, value: "contact-phone"),
] ]
} }
......
...@@ -370,7 +370,7 @@ final class HomeFeatureTests: XCTestCase { ...@@ -370,7 +370,7 @@ final class HomeFeatureTests: XCTestCase {
} }
XCTAssertNoDifference(dbDidFetchContacts, [.init(id: ["contact-id".data(using: .utf8)!])]) 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(messengerDidDestroy, 1)
XCTAssertNoDifference(didRemoveDB, 1) XCTAssertNoDifference(didRemoveDB, 1)
......
...@@ -63,7 +63,7 @@ final class RegisterFeatureTests: XCTestCase { ...@@ -63,7 +63,7 @@ final class RegisterFeatureTests: XCTestCase {
bgQueue.advance() bgQueue.advance()
XCTAssertNoDifference(messengerDidRegisterUsername, ["NewUser"]) XCTAssertNoDifference(messengerDidRegisterUsername, ["NewUser"])
XCTAssertNoDifference(didSetFactsOnContact, [[Fact(fact: "NewUser", type: 0)]]) XCTAssertNoDifference(didSetFactsOnContact, [[Fact(type: .username, value: "NewUser")]])
XCTAssertNoDifference(dbDidSaveContact, [ XCTAssertNoDifference(dbDidSaveContact, [
XXModels.Contact( XXModels.Contact(
id: "contact-id".data(using: .utf8)!, id: "contact-id".data(using: .utf8)!,
......
...@@ -63,9 +63,9 @@ final class SendRequestFeatureTests: XCTestCase { ...@@ -63,9 +63,9 @@ final class SendRequestFeatureTests: XCTestCase {
var myContact: XXClient.Contact = .unimplemented("my-contact-data".data(using: .utf8)!) var myContact: XXClient.Contact = .unimplemented("my-contact-data".data(using: .utf8)!)
let myFacts = [ let myFacts = [
Fact(fact: "my-username", type: 0), Fact(type: .username, value: "my-username"),
Fact(fact: "my-email", type: 1), Fact(type: .email, value: "my-email"),
Fact(fact: "my-phone", type: 2), Fact(type: .phone, value: "my-phone"),
] ]
myContact.getFactsFromContact.run = { _ in myFacts } myContact.getFactsFromContact.run = { _ in myFacts }
...@@ -142,9 +142,9 @@ final class SendRequestFeatureTests: XCTestCase { ...@@ -142,9 +142,9 @@ final class SendRequestFeatureTests: XCTestCase {
var myContact: XXClient.Contact = .unimplemented("my-contact-data".data(using: .utf8)!) var myContact: XXClient.Contact = .unimplemented("my-contact-data".data(using: .utf8)!)
let myFacts = [ let myFacts = [
Fact(fact: "my-username", type: 0), Fact(type: .username, value: "my-username"),
Fact(fact: "my-email", type: 1), Fact(type: .email, value: "my-email"),
Fact(fact: "my-phone", type: 2), Fact(type: .phone, value: "my-phone"),
] ]
myContact.getFactsFromContact.run = { _ in myFacts } 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