Commit 5f776ac9 authored by Jose Blaya's avatar Jose Blaya
Browse files

Unit test to check we receive the result in the callback.

parent 339c56c8
......@@ -51,6 +51,19 @@ class AccountTests: XCTestCase {
__testLogout(factory: mock)
func testAPIEndpointIsReachable() {
let expectationAPIEndpoint = expectation(description: "apiEndpoint")
mock.accountProvider.isAPIEndpointAvailable { (result, error) in
XCTAssertTrue(result!, "The default API endpoint should be reachable from the tests")
waitForExpectations(timeout: 5.0, handler: nil)
/*func testWeb() {
__testLogin(factory: live)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment