MockingJ 0.2.0

MockingJ 0.2.0

Maintained by Juanjo Arreola.



MockingJ 0.2.0

  • By
  • Juanjo

HTTP stubs for Swift

Usage

Change (or use) the URLSession of Interceptor to make requests:

UserRepository.shared.session = Interceptor.session

Add stubs to the Interceptor:

let user = AuthUser(id: 1, token: "sjzfbsfhjzk")
Interceptor.add(stub: try PathStub(path: "/users/login", object: user, method: "POST"))