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

Update tests

parent 52851d6d
No related branches found
No related tags found
2 merge requests!124File transfers example,!102Release 1.0.0
...@@ -468,21 +468,19 @@ final class AppFeatureTests: XCTestCase { ...@@ -468,21 +468,19 @@ final class AppFeatureTests: XCTestCase {
]) ])
actions = [] actions = []
struct AuthError: Error {} let authError = NSError(domain: "auth-handler-error", code: 1)
let authError = AuthError()
authHandlerOnError.first?(authError) authHandlerOnError.first?(authError)
XCTAssertNoDifference(actions, [ XCTAssertNoDifference(actions, [
.didLog(.error(authError as NSError)) .didLog(.error(authError))
]) ])
actions = [] actions = []
struct MessageError: Error {} let messageError = NSError(domain: "message-listener-error", code: 2)
let messageError = MessageError()
messageListenerOnError.first?(messageError) messageListenerOnError.first?(messageError)
XCTAssertNoDifference(actions, [ XCTAssertNoDifference(actions, [
.didLog(.error(messageError as NSError)) .didLog(.error(messageError))
]) ])
actions = [] actions = []
......
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