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

Fix tests

parent 5ab6763b
No related branches found
No related tags found
2 merge requests!115Messenger example - reset authenticated channel,!102Release 1.0.0
......@@ -10,8 +10,7 @@ final class AuthCallbackHandlerResetTests: XCTestCase {
var didSaveContact: [XXModels.Contact] = []
let dbContact = XXModels.Contact(
id: "id".data(using: .utf8)!,
authStatus: .friend
id: "id".data(using: .utf8)!
)
let reset = AuthCallbackHandlerReset.live(
db: .init {
......@@ -34,7 +33,7 @@ final class AuthCallbackHandlerResetTests: XCTestCase {
XCTAssertNoDifference(didFetchContacts, [.init(id: ["id".data(using: .utf8)!])])
var expectedSavedContact = dbContact
expectedSavedContact.authStatus = .stranger
expectedSavedContact.authStatus = .friend
XCTAssertNoDifference(didSaveContact, [expectedSavedContact])
}
......
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