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

Use Contact model in E2EGetContact

parent 34bf6267
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!42Update Bindings
...@@ -2,9 +2,9 @@ import Bindings ...@@ -2,9 +2,9 @@ import Bindings
import XCTestDynamicOverlay import XCTestDynamicOverlay
public struct E2EGetContact { public struct E2EGetContact {
public var run: () -> Data public var run: () -> Contact
public func callAsFunction() -> Data { public func callAsFunction() -> Contact {
run() run()
} }
} }
...@@ -15,13 +15,16 @@ extension E2EGetContact { ...@@ -15,13 +15,16 @@ extension E2EGetContact {
guard let data = bindingsE2E.getContact() else { guard let data = bindingsE2E.getContact() else {
fatalError("BindingsE2e.getContact returned `nil`") fatalError("BindingsE2e.getContact returned `nil`")
} }
return data return Contact.live(data)
} }
} }
} }
extension E2EGetContact { extension E2EGetContact {
public static let unimplemented = E2EGetContact( public static let unimplemented = E2EGetContact(
run: XCTUnimplemented("\(Self.self)", placeholder: "unimplemented".data(using: .utf8)!) run: XCTUnimplemented(
"\(Self.self)",
placeholder: .unimplemented("unimplemented".data(using: .utf8)!)
)
) )
} }
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